Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Editing XML



On 2014年06月19日 03:56, Brian Chandler wrote:
> So the question is: What is the right tool? InDesign files (haven't 
> actually managed to see one yet) appear to be xml,

InDesign files (INDD) are not XML, but the document can be exported to
IDML (InDesign Markup Language [1]) or XLIFF (XML Localisation Interchange
File Format [2]), which are XML.  Memsource apparently supports IDML.

> The question is whether there is some 
> other generic framework for cracking the text out of (specifically 
> .idml) xml files for translation, in an intelligent and flexible way, 
> capable of helping automation, rather than hindering it. For example, 
> one global replace, something like (imagined example):
> 
> s/<char-special type='maru-suuji' value=$N>/($N)/
> 
> ... would replace every circled number by the appropriate (n), supposing 
> that this is the design decision. To do this in Memsource effectively 
> means that every single numeral will be retyped, errors will occur, etc 
> etc. COST.

sed! :)

Translate Toolkit [3] is a set of utilities written in Python and easy to
hack (that has saved me considerable effort in software translation
projects).  Though it does not support IDML, it supports XLIFF.

Cheers,

Travis

[1]
https://www.adobe.com/content/dam/Adobe/en/devnet/indesign/cs55-docs/IDML/idml-specification.pdf
[2] http://en.wikipedia.org/wiki/XLIFF
[3] http://translate.sourceforge.net/wiki/


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links