You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to prete...@googlegroups.com
Mostly for Rob...
I was digging into allowing localizations in "representations" so that runestone-to-static can write localized strings. As I did so, I realized that mode="type-name" depends on the "language" pass in assembly. So freeing it from $docinfo still leaves a dependency on a pass that comes after "representations".
Let me know if you have any ideas for a fix to that issue. My hacky idea is to let representations drop a <localize>TEXT</localize> that gets cleaned up by the "language" pass.
Or, we can postpone trying to localize in representations and I can just fixup the QR code PR without the broader fix.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to prete...@googlegroups.com
> depends on the "language" pass
Aaargh. Why can't we do everything first?
How about a #pi:localize element? I'd think it could be resolved in -common?
And maybe not TEXT, but @string-id that maps 1-1 into the named template that
will grab the right translation?
And as a precursor PR with a final commit that has a throw-away non-sensical use
within some representation (like current #sidebyside) to experiment with?
I was not able to use a modeless template in common to handle <pi:localize>. There were too many spots where ancestors ended up making assumptions about their contents and not calling apply-templates on things they were not expecting.
So instead, the pi:localize are processed as part of the "lanugage" pass in assembly. It could be made into its own pass, but logically it fits in there and there aren't many templates to worry about in that mode.