-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement new update API for writing systems #1240
Conversation
Note that FwDataMiniLcmApi hasn't implemented the UpdateWritingSystem overload with (id, type, update), which is the (before, after) method is going to end up calling. So that still needs to happen.
GUID Id vs string WsId is still an issue, as is the Font/Fonts issue.
Decision during yesterday's team meeting: for now, Font will remain a single string and will be used to indicate the default font in LCM (DefaultFontName property). DefaultFontName is read-only in LCM, so if it changes on the CRDT side, we should instead use its new value to look up the name of a font and set the DefaultFont property in LCM, e.g.: ws.DefaultFont = new FontDefinition("Charis SIL"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should really avoid using the WritingSystem Id property which is a Guid, maybe we mark it obsolete or something? There's a number of places where we really don't want to use it at all as there's no counterpart in Fieldworks. I left some comments to that end. Maybe we hide that field as it's really only required for Crdts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me, assuming the tests all pass go ahead and merge
Fix #1189.
Note that FwDataMiniLcmApi hasn't implemented the UpdateWritingSystem overload with (id, type, update), which the (before, after) method is going to end up calling. So that still needs to happen.