Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix errors from accidental global variable removal | Shaun McCance | 2020-12-26 | 1 | -7/+8 |
| | | | | | | In a recent commit for profiling, I moved the __main__ code to a main() function. This broke some stuff that relied on an accidentally global variable. Now the variable gets passed as a param, as it should. | ||||
* | Cache computed values for translate, localefilter, and locnote | Shaun McCance | 2020-12-12 | 1 | -6/+35 |
| | | | | | | | | If these aren't explicitly set for a node with a selector or local markup, then we have to chain up, often all the way to the root. But we were doing this over and over again, chaining up across the same nodes. This change stores the computed value, so chaining up usually hits that cache. I was careful to clear the cache if new rules are applied. | ||||
* | Don't re-lookup ITS params for every single rule | Shaun McCance | 2020-12-06 | 1 | -26/+39 |
| | | | | | | | | | We have to create a new XPath context for every rule, and we have to freshly apply any ITS params to that context. But what we were also doing is looking thru the children of the parent ITS rules element for param element each time. This was inefficient. Looking for param elements only once per ruleset gives a small but measurable speed boost. | ||||
* | Apply ITS files passed with -i in --join mode | Shaun McCance | 2018-11-08 | 1 | -0/+3 |
| | | | | Fixes https://github.com/itstool/itstool/issues/34 | ||||
* | Fix py 2/3 issues and add a test case | Shaun McCance | 2018-08-21 | 1 | -19/+15 |
| | |||||
* | Open file as bytes, since we're saving bytes! | Álvaro Muñoz | 2018-08-20 | 1 | -3/+3 |
| | |||||
* | Fix #28 (python 3.7, macOS) | Álvaro Muñoz | 2018-08-18 | 1 | -0/+3 |
| | |||||
* | Fix #30 | Álvaro Muñoz | 2018-08-18 | 1 | -0/+2 |
| | |||||
* | Fix compatibility with pyhton 3.7 (no need to encode to bytes) | Álvaro Muñoz | 2018-08-18 | 1 | -2/+2 |
| | |||||
* | Be more careful about libxml2 memory management | Shaun McCance | 2017-10-25 | 1 | -2/+11 |
| | | | | I think this fixes https://github.com/itstool/itstool/issues/17 | ||||
* | Fix massive performance issue | Shaun McCance | 2017-10-11 | 1 | -2/+9 |
| | | | | Fixed https://github.com/itstool/itstool/issues/15 | ||||
* | Merge branch 'master' into placeholder | Shaun McCance | 2017-08-15 | 1 | -79/+116 |
|\ | |||||
| * | Merge pull request #3 from hsoft/master | Shaun McCance | 2017-08-15 | 1 | -79/+114 |
| |\ | | | | | | | | | | | | | Add python 3 support All tests pass with both py2 and py3 | ||||
| | * | Fix problem with merging translations under py3 | Virgil Dupras | 2016-01-16 | 1 | -4/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes three problems at once: 1. When fiddling with credits nodes, we would get an error about libxml2 expecting `str` rather than `bytes`. We could fix this by encoding the value only when uner py2. 2. When writing the merged XML, our serlialized data would be `str` under py3, which would cause implicit encoding problems when writing that contents to the file. 3. `fout` would not be closed after writing, which would sometimes cause the target file to end up with no contents at all (at least on my machine. | ||||
| | * | Add python 3 support | Virgil Dupras | 2015-03-15 | 1 | -77/+103 |
| | | | |||||
| * | | Fix keep entities mode after libxml2 changes | Shaun McCance | 2017-08-15 | 1 | -0/+2 |
| | | | | | | | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=762110 | ||||
* | | | Get Placeholder out of Message | Claude Paroz | 2017-05-01 | 1 | -7/+8 |
|/ / | |||||
* | | Add -j command to Usage | Shaun McCance | 2016-09-02 | 1 | -1/+3 |
| | | |||||
* | | Add --path option for extra paths for ITS files | Shaun McCance | 2016-08-31 | 1 | -2/+17 |
| | | |||||
* | | Don't error out (except under -s) for mismatched placeholders | Shaun McCance | 2016-03-14 | 1 | -1/+11 |
|/ | |||||
* | Fix UTF-8 handling for translated attributes | Shaun McCance | 2014-03-17 | 1 | -1/+1 |
| | |||||
* | itstool.1: Update man page | Shaun McCance | 2013-12-17 | 1 | -1/+1 |
| | |||||
* | Don't hardcode python path | Ryan Lortie | 2013-12-11 | 1 | -1/+1 |
| | | | | | | | Instead, use automake to find it at runtime and put #!@PYTHON@ at the top of itstool.in. https://bugs.freedesktop.org/show_bug.cgi?id=72533 | ||||
* | Fixed crash in locale filter and drop rule, #715116 | Shaun McCance | 2013-11-24 | 1 | -2/+2 |
| | | | | | When the dropped node has no preceding sibling, itstool crashes because it tries to unlink prev node if it's blank. | ||||
* | itstool.in: Allow users to set ITS params | Shaun McCance | 2013-11-01 | 1 | -24/+38 |
| | |||||
* | Merge branch 'master' into its-2-0 | Shaun McCance | 2013-10-28 | 1 | -9/+38 |
|\ | |||||
| * | Added an option to retain entity references | Shaun McCance | 2013-09-21 | 1 | -5/+27 |
| | | | | | | | | | | | | | | You still have to load the DTD if the entities are defined in the external subset, because libxml2 checks references even if it doesn't dereference them. It would be nice if this weren't necessary. | ||||
| * | Fix utf8 issue introduced in Sep 20 commit | Shaun McCance | 2013-09-21 | 1 | -4/+6 |
| | | |||||
| * | Merge commit 'refs/merge-requests/4' of gitorious.org:itstool/itstool | Shaun McCance | 2013-08-21 | 1 | -3/+10 |
| |\ | |||||
| | * | add --load-dtd option | Galen Charlton | 2012-08-29 | 1 | -3/+10 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This option tells itstool to load external DTDs when parsing the document to be translated. This prevents errors when the document includes entity references defined in those DTDs. Note that externally-defined entity refs still cannot be used in translated strings in the PO files. Also note that this adds test cases that require either network access or updating the local XML catalog to including the DocBook DTDs. Signed-off-by: Galen Charlton <gmc@esilibrary.com> | ||||
* | | | Support localeFilterType="exclude" | Shaun McCance | 2013-10-28 | 1 | -16/+48 |
| | | | |||||
* | | | Add support for its:param | Shaun McCance | 2013-10-27 | 1 | -1/+11 |
| | | | |||||
* | | | Fixed issue with preserveSpace from xml:space attribute | Shaun McCance | 2013-10-27 | 1 | -8/+7 |
| | | | |||||
* | | | Properly handle loc note inheritance | Shaun McCance | 2013-02-09 | 1 | -4/+7 |
| | | | |||||
* | | | Add LocNote class to better track localization note info | Shaun McCance | 2013-02-09 | 1 | -19/+50 |
| | | | |||||
* | | | Fix IdValue for attributes and nodes with attributes | Shaun McCance | 2013-02-09 | 1 | -1/+1 |
| | | | |||||
* | | | Adding the ITS 2.0 test suite, found here: | Shaun McCance | 2013-02-02 | 1 | -8/+25 |
| | | | | | | | | | | | | https://github.com/finnle/ITS-2.0-Testsuite/commits/master | ||||
* | | | Implemented ITS 2.0 "ID Value" data category | Shaun McCance | 2012-09-26 | 1 | -1/+47 |
| | | | |||||
* | | | Support for local withinText | Shaun McCance | 2012-09-21 | 1 | -2/+10 |
| | | | |||||
* | | | Fix tests for namespace prefix handling | Shaun McCance | 2012-09-20 | 1 | -4/+4 |
| | | | |||||
* | | | Merge branch 'master' into its-2-0 | Shaun McCance | 2012-09-20 | 1 | -2/+8 |
|\ \ \ | |/ / | |||||
| * | | Support namespace prefixes on elements | Shaun McCance | 2012-09-20 | 1 | -2/+8 |
| |/ | |||||
* | | Adding test output for External Resource | Shaun McCance | 2012-09-19 | 1 | -0/+2 |
| | | |||||
* | | Use External Resource implementation for itst:externalRefRule | Shaun McCance | 2012-09-19 | 1 | -40/+6 |
| | | |||||
* | | Implemented ITS 2.0 External Resource data category | Shaun McCance | 2012-09-19 | 1 | -0/+51 |
| | | |||||
* | | Sort attribute names in test output | Shaun McCance | 2012-09-11 | 1 | -2/+2 |
| | | |||||
* | | First pass at implementing Locale Filter | Shaun McCance | 2012-09-11 | 1 | -37/+124 |
| | | |||||
* | | Implemented test suite output for withinText | Shaun McCance | 2012-09-10 | 1 | -12/+15 |
| | | |||||
* | | Adding test suite output for its:translate | Shaun McCance | 2012-09-10 | 1 | -33/+77 |
| | | |||||
* | | Implemented ITS 2.0 Preserve Space data category | Shaun McCance | 2012-09-08 | 1 | -7/+13 |
|/ |