Skip to content

Commit

Permalink
Improved support for DITA from Astoria CMS
Browse files Browse the repository at this point in the history
  • Loading branch information
rmraya committed Dec 2, 2022
1 parent 3824c0a commit f4e4ae3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ XML and JSON filters are configurable

Version | Comment | Release Date
:------:|---------|:-----------:
2.11.0 | Improved support for DITA from Astoria CMS | December 2nd, 2022
2.10.0 | Fixed DITA segmentation | November 22nd, 2022
2.9.1 | Fixed joining of XLIFF 2.0 files and improved PHP Array support | October 22nd, 2022
2.9.0 | Added support for PHP Arrays | October 21st, 2022
Expand Down
Binary file modified lib/openxliff.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sonar.projectKey=OpenXLIFF
# this is the name displayed in the SonarQube UI
sonar.projectName=OpenXLIFF
sonar.projectVersion=2.9.0
sonar.projectVersion=2.11.0

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# Since SonarQube 4.2, this property is optional if sonar.modules is set.
Expand Down
4 changes: 2 additions & 2 deletions src/com/maxprograms/converters/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ private Constants() {

public static final String TOOLID = "OpenXLIFF";
public static final String TOOLNAME = "OpenXLIFF Filters";
public static final String VERSION = "2.10.0";
public static final String BUILD = "20221124_1034";
public static final String VERSION = "2.11.0";
public static final String BUILD = "20221202_1152";

public static final String SUCCESS = "0";
public static final String ERROR = "1";
Expand Down
5 changes: 5 additions & 0 deletions src/com/maxprograms/converters/ditamap/DitaParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,11 @@ private void recurse(Element e, String parentFile) throws IOException, SAXExcept
href = URLDecoder.decode(href, StandardCharsets.UTF_8);
try {
File file = new File(href);
if (file.getName().indexOf('#') != -1) {
// remove fragment identifier
file = new File(file.getParentFile(), file.getName().substring(0, file.getName().indexOf('#')));
href = file.getAbsolutePath();
}
if (file.exists()) {
if (dataLogger != null) {
if (dataLogger.isCancelled()) {
Expand Down

0 comments on commit f4e4ae3

Please sign in to comment.