-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
How do I write a given <target> on XLIFF 2.0? #8
Comments
I don't understand what your problem is. Is there anything wrong in OpenXLIFF that needs fixing? |
not exactly.
So, what I need is is there any API that can write a given I hope you can understand |
It seems that you have a bad XLIFF after processing. You need to fix or replace the tool that breaks the XLIFF. OpenXLIFF already has all the code needed to read and write XLIFF files. It is the main library used by other tools like Swordfish for handling XLIFF |
thank you for your ultra-fast response yea, I know full well that the okapi-lib-xliff2 breaks your XLIFF after I examined it. |
There is no special tutorial. XLIFF is XML and OpenXLIFF has XML library for reading and processing the XML, as shown in the different tools that use it. |
Have you reported the problem to Okapi developers? |
I've just examined the |
I can't comment if I don't see the file. |
BTW, why did you say that okapi breaks the XLIFF file? |
you can check this out: https://gist.github.com/handhikadj/efc6a425280c8a28430eb048c12b4373#file-main-java-L94-L109 I can't find an API in OpenXLIFF similar to the okapi one. I hope you can provide this in the future / any time soon |
Your code does not handle target tags. You can have valid XLIFF but that XLIFF would be useless. Merged Word files would be broken and Word would complain when you try to open them. Features similar to the Okapi API already exists in the tools that use OpenXLIFF. There are methods for reading, iterating, modifying, writing and saving XML files, including XLIFF, TMX, TBX, etc. |
would you point me out to that? |
Sorry, but I can't help you. |
I'm using okapi-lib-xliff2 to read-and-write a
.xlf
file which generated from OpenXLIFF's./convert.sh
. but after that, Word deems the file is corrupted when I merge the XLIFF file back using OpenXLIFF's./merge.sh
because the okapi-lib has different format of how they write-and-save the XLIFF file.Any API/Library to write your generated
.xlf
file after./convert.sh
?The text was updated successfully, but these errors were encountered: