-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
L10N - Fix RTL rendering of blocks #34
Comments
@carljbowman what's the reference point for positioning the icons? (Start, end, centered, etc.) Are we ever going to have horizontal blocks that could have multiple icons? Will there be C-shaped blocks that have an icon at the beginning instead of the end? @NeilFraser should I try to make this generalizable (for horizontal blockly with arbitrary blocks/arbitrary numbers of images) or implement it specifically for the scratch jr cases? FYI in the existing code "icon" refers to the little gear for mutators, exclamation mark for the few errors, etc. |
Blockly attempts to be general-purpose. No matter what Frankenstein block configuration you give it, Blockly will render it properly. But the result is a rather complicated codebase. Scratch Jr has an exceedingly small number of shapes. Therefore I think it is best for Scratch Jr to take the more limited approach of just rendering what it needs to. This leads to simpler code, though every time a new block shape is added (e.g. if/else), Scratch Jr will need more code. Since Scratch Jr does not have an open-ended set of blocks, non-generalized code should be an easier path in my opinion. Scratch on the other hand is much more expressive and should be fully generalized. |
Not fully there yet. |
yeah, that automatic closing gets you sometimes :P |
Closing this now as it's actually fixed I think. Let's revisit in new bugs if there are new problems. |
Improve media library performance
In the process of quickly implementing the horizontal grammar we broke RTL in a number of places:
Depends on #31
The text was updated successfully, but these errors were encountered: