Skip to content
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

Add BasedOn style property and fix duplicate styles #32

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

aror92
Copy link
Contributor

@aror92 aror92 commented Apr 26, 2024

  • Add based on property when generating styles from LCM stylesheet that have based on specified in FLEx.

  • Edit styleDictionary to store individual styles instead of groups of styles.

  • Revise AddStyles so it adds each style one time only, using the stylenames instead of css classes as the dictionary keys.

NOTE: In the Word export, the style dictionary should save each style individually rather than a collection of styles associated with a given css class.
Otherwise, any given style may be added to the styles xml multiple times, once for each css class using that style.

Remaining task:

  • Homograph-Number style is still being duplicated. It is handled in a different function and requires its own fix.

Change-Id: I9530c894fdae8251ab4211f1c7529fa63586b446


This change is Reviewable

- Add based on property when generating styles from LCM
stylesheet that have based on specified in FLEx.

- Edit styleDictionary to store individual styles
instead of groups of styles.

- Revise AddStyles so it adds each style one time only,
using the stylenames instead of css classes as the
dictionary keys.

NOTE: In the Word export, the style dictionary should save
each style individually rather than a collection of
styles associated with a given css class.
Otherwise, any given style may be added to the styles xml
multiple times, once for each css class using that style.

Remaining task:
- Homograph-Number style is still being duplicated. It is
handled in a different function and requires its own fix.

Change-Id: I9530c894fdae8251ab4211f1c7529fa63586b446
Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @aror92)

@aror92 aror92 merged commit 442b37a into release/9.1 Apr 29, 2024
5 checks passed
@aror92 aror92 deleted the feature/basedOnStyles branch April 29, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants