-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
side-by-side original and translation #219
Conversation
Thank you for your great idea and effort! I truly appreciate your contribution. After testing the code, however, I found that there are some areas for improvement and additional unittest cases that need to be applied. But no worries, I will address this after merging the PR. |
Hey! I've checked the code and update looks much better than my initial offer %) Anyway, I came here to inform that following part of code may cause some issues: That was the reason why string of special symbols were inserted into that middle column. Because then it holds its width no matter if any styling applied or not. |
Thank you for your reminder. I noticed that you used The issue of the middle "empty" column collapsing, as you observed, is attributed to the
Since only the intrinsic attributes of the table and its children elements are used here, compatibility issues should be minimal, even on older devices that may not fully support modern stylesheets. However, it's worth noting that this is an ideal scenario and may not cover all possible conditions. If your device encounters unexpected results, please provide more details for resolving this issue. |
Have you enabled the "Merge to Translation" option and also used the cached translation? If so, I have encountered the same issue. The problem originated from the feature I introduced in commit c89e735, which disrupted the translation order. This was primarily due to an unreasonable implementation. I have fixed the issue, and I will @ you once the fix is committed. Please feel free to test it at your convenience. If this situation does not align with the one I mentioned, kindly inform me. Thank you. |
The dislocation issue has been addressed in commit 7cc8191. @tiropictor |
I've downloaded latest version from Github, deleted all caches, and re-translated the book. As result, I can confirm that translations are now on correct places along with originals. Going to post another separate comment with details on middle column / gap between original and translation. |
Maybe it would be even better to allow user to set this gap width in settings, like "narrow / medium / wide" and according to that setting put there appropriate number of those spaces into middle column? Let's say 3 for narrow, 5 for medium and 8 for wide.. |
Thanks for the detailed information. After reviewing your screenshots, your advice seems reasonable. I will implement an option that allows users to control the number of non-breaking space for the layout. |
Please check out the commit cd10ef3 and test latest version. @tiropictor |
Added side-by-side original/translation option.
(Seen this request on forum, and actually personally for me it's more convenient to see text in two columns, much easier to refer to original, if translation isn't clear enough)