Skip to content

Commit

Permalink
Merge pull request #2 from brailleapps/master
Browse files Browse the repository at this point in the history
Merge from brailleapps
  • Loading branch information
kalaspuffar authored Oct 21, 2019
2 parents 17c6e3e + b0dd2f3 commit 676e900
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 34 deletions.
3 changes: 3 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Code of Conduct
1. This is the Code of Conduct.
1. Anyone advocating or suggesting modifications to this Code of Conduct shall be removed and banished from this organization.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ dependencies {
compile 'org.daisy.streamline:streamline-api:1.3.0'

runtimeOnly 'org.daisy.braille:braille-utils.impl:7.0.0'
runtimeOnly ('org.daisy.dotify:dotify.formatter.impl:5.0.0') {
runtimeOnly ('org.daisy.dotify:dotify.formatter.impl:5.0.2') {
exclude module: 'Saxon-HE'
}
runtimeOnly 'org.daisy.dotify:dotify.hyphenator.impl:5.0.0'
Expand Down
20 changes: 18 additions & 2 deletions docs/changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
[Table of Contents](toc.md)

# 3.2.1
## New in this version
- Formatting
- Formatting process is faster and guaranteed to converge
- Volume breaking is more stable #50
- Fix interpretation of volume-keep-priority in and around nested blocks
- Fix break-before="page" when already at the beginning of a page, resulting in less empty pages in the result. #98
- Allow evaluation of $volume in volume transitions and in the normal flow #99
- Allow ```<evaluate expression="$page"/>```, where you previously had to say (round $page) or (format {0} $page) #99
- Be more strict about what is allowed in an expression #99
- Don't normalize space in evaluating expressions #99
- Call setResolver earlier to enable peeking to Evaluate or PageNumberReference segments #105
- Fix a mismatch between the behavior of ScenarioData and RowGroupDataSource that could result in an IllegalStateException, notably when a break-before="page" occurs when there are only empty blocks on the current page, some of which have markers. #98
- any-resumed does not reduce available space on page when not rendered
- Improved documentation #102

# 3.2.0
## New in this version
- User interface
Expand Down Expand Up @@ -202,10 +218,10 @@
* Added option to re-run conversion upon change in source file
* Added translator command
* Improved volume breaking
* Improved pagination algorithm
* Improved pagination algorithm
* Added support for collapsing margins
* Added additional variables in OBFL

# 2.3 #
* Added support for footnotes and end of volume notes in API and formatter implementation
* Added support for note/noteref to the dtbook conversion
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sonatypeUsername=user
sonatypePassword=password
releaseName=Dotify
version=3.2.1-SNAPSHOT
version=3.2.2-SNAPSHOT
repositoryRevision=N/A
repositoryURL=https://github.com/brailleapps/dotify-cli
repositorySCM=scm:git:https://github.com/brailleapps/dotify-cli.git
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 3 additions & 3 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down Expand Up @@ -125,8 +125,8 @@ if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi

# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
# For Cygwin or MSYS, switch paths to Windows format before running java
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
Expand Down
2 changes: 1 addition & 1 deletion gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem http://www.apache.org/licenses/LICENSE-2.0
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
50 changes: 25 additions & 25 deletions integrationtest/osgi/config/ConfigurationOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@SuppressWarnings("javadoc")
public abstract class ConfigurationOptions {

public static Option felixDS() {
return MavenRepo.CENTRAL.get("org.apache.felix", "org.apache.felix.scr", "2.1.14");
}
Expand All @@ -24,30 +24,30 @@ public static Option brailleUtilsCore() {
MavenRepo.CENTRAL.get("org.daisy.braille", "braille-utils.pef-tools", "6.0.0")
);
}

public static Option brailleUtilsCatalog() {
return MavenRepo.CENTRAL.get("org.daisy.braille", "braille-utils.impl", "7.0.0");
}

static Option dotifyApi() {
return MavenRepo.CENTRAL.get("org.daisy.dotify", "dotify.api", "5.0.0");
}

static Option dotifyCommon() {
return MavenRepo.CENTRAL.get("org.daisy.dotify", "dotify.common", "4.4.0");
}

public static Option dotifyText() {
return composite(
dotifyApi(),
MavenRepo.CENTRAL.get("org.daisy.dotify", "dotify.text.impl", "5.0.0")
);
}

static Option texhyphj() {
return MavenRepo.CENTRAL.get("com.googlecode.texhyphj", "texhyphj", "1.2");
}

public static Option dotifyHyphenator() {
return composite(
dotifyApi(),
Expand All @@ -56,7 +56,7 @@ public static Option dotifyHyphenator() {
MavenRepo.CENTRAL.get("org.daisy.dotify", "dotify.hyphenator.impl", "5.0.0")
);
}

public static Option dotifyTranslator() {
return composite(
dotifyHyphenator(),
Expand All @@ -65,43 +65,43 @@ public static Option dotifyTranslator() {
MavenRepo.CENTRAL.get("org.daisy.dotify", "dotify.translator.impl", "5.0.0")
);
}

static Option streamlineApi() {
return MavenRepo.CENTRAL.get("org.daisy.streamline", "streamline-api", "1.4.0");
}

static Option jing() {
return MavenRepo.CENTRAL.get("org.daisy.libs", "jing", "20120724.0.0");
}

static Option saxon() {
return MavenRepo.CENTRAL.get("org.daisy.libs", "saxon-he", "9.5.1.5");
}

static Option stax2() {
return MavenRepo.CENTRAL.get("org.codehaus.woodstox", "stax2-api", "3.1.4");
}

static Option wstx() {
return composite(
stax2(),
MavenRepo.CENTRAL.get("com.fasterxml.woodstox", "woodstox-core", "5.0.2")
);

}

public static Option dotifyFormatter() {
return composite(
streamlineApi(),
dotifyText(),
dotifyHyphenator(),
dotifyText(),
dotifyHyphenator(),
dotifyTranslator(),
wstx(),
saxon(),
MavenRepo.CENTRAL.get("org.daisy.dotify", "dotify.formatter.impl", "5.0.0")
MavenRepo.CENTRAL.get("org.daisy.dotify", "dotify.formatter.impl", "5.0.2")
);
}

public static Option dotifyTasks() {
return composite(
dotifyApi(),
Expand All @@ -112,7 +112,7 @@ public static Option dotifyTasks() {
MavenRepo.CENTRAL.get("org.daisy.dotify", "dotify.task.impl", "4.7.0")
);
}

public static Option streamlineEngine() {
return composite(
dotifyCommon(),
Expand All @@ -125,7 +125,7 @@ enum MavenRepo {
CENTRAL,
SONATYPE_STAGING,
LOCAL;

Option get(String group, String artifact, String version) {
switch(this) {
case LOCAL:
Expand All @@ -136,26 +136,26 @@ Option get(String group, String artifact, String version) {
return mavenBundle().groupId(group).artifactId(artifact).version(version);
}
}

static Option sonatypeStaging(String group, String artifact, String version) {
String path = group.replaceAll("\\.", "/");
return bundle("https://oss.sonatype.org/content/groups/staging/"+path+
"/"+artifact+"/"+version+"/"+artifact+"-"+version+".jar");
}

static File mavenLocal = null;

static synchronized File getMavenLocal() {
if (mavenLocal==null) {
File home = new File(System.getProperty("user.home"));
mavenLocal = new File(new File(home, ".m2"), "repository");
if (!mavenLocal.isDirectory()) {
throw new RuntimeException("Cannot find maven local at " + mavenLocal);
}
}
}
return mavenLocal;
}

static Option local(String group, String artifact, String version) {
try {
String path = group.replaceAll("\\.", "/");
Expand Down

0 comments on commit 676e900

Please sign in to comment.