-
Notifications
You must be signed in to change notification settings - Fork 9
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
Question - Multilingual PDF with 1 language per column #212
Comments
Using columns for this purpose is bit difficult because text flows from left column to right column automatically. If you use fo:block-container/@column-count="2" per topic, you may get the desired result. But one problem exists because if contents of English overs one page, it will move into right column from left column. I've consulted Formatter support colleague and got the the following fo:table solution. This is best at this moment. Also, making English and translated topic into one map will be easier because DITA-OT can input one root map per one processing. Hope this helps your development. |
I have a follow up question to this, can the translated topics reference the appropriate string file in the Config folder. Specifically, I want to display the Target_language value when the language (as determened by xml:lang) changes. |
If you define language specific variables in xx-YY_style.xml, you can obtain it via "getVarValueWithLang" template. Probably in your case, following variable definition will be needed in xx-YY_style.xml.
It will be important to call "getVarValueWithLang" inside the matching template (the context xml:lang is "xx-YY"). |
There is no function version of "getVarValueWithLang" defined in original XSLT code. Use xsl:call-template instead. |
This is also true in "getAttributeSetWithLang". This may be because it needs current context and xsl:function need to be passed it as xsl:param. |
Ohhh, I see. That did the trick. Thank you so much!
…On Mon, Jul 11, 2022 at 12:07 AM Toshihiko Makita ***@***.***> wrote:
There is no function version of "getVarValueWithLang" defined in original
XSLT code.
This is also true in "getAttributeSetWithLang". This may be because it
needs current context and xsl:function need to be passed it as xsl:param.
—
Reply to this email directly, view it on GitHub
<#212 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AW5O6GKFMUCU67OYDBOEAJ3VTOTXTANCNFSM5GMTSZDA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Is it possible to publish two DITA maps, 1 English and 1 translated, so they flow next to each other on the same page in a 2 column layout? The English would be on one side (column 1), and the translated equivalent would be on the other (column 2).
Since translated content is often longer than the original source, the trick would be to keep the start of the English topic aligned with the start of the translated topic.
Is this possible?
Or, would it be easier if it was a single map that had the English and translated topics together with the same topic sequence?
topicref topic 1 English
topicref topic 1 translation
topicref topic 2 English
topicref topic 2 translation
Any suggestions on getting something close to this?
Thanks,
Leroy Steinbacher
The text was updated successfully, but these errors were encountered: