This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project name="test"> | |
<target name="dita2ltIntermediate" depends="build-init, preprocess, lt.image.metadata"/> | |
<target name="lt.image.metadata" depends="build-init"> | |
<pipeline message="Read image metadata." taskname="image-metadata" tempdir="${dita.temp.dir}"> | |
<module class="org.dita.dost.module.ImageMetadataModule"> | |
<param name="outputdir" location="${output.dir}"/> | |
</module> | |
</pipeline> | |
</target> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn is-passive-sentence? | |
[^String sentence] | |
(boolean (some #(= (last %) :nsubjpass) (:edges (dependency-parse sentence))))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare namespace output = "http://www.w3.org/2010/xslt-xquery-serialization"; | |
declare option output:method "text"; | |
declare variable $CLASS_MAP_TOPICREF := " map/topicref "; | |
declare variable $SCOPE_LOCAL := "local"; | |
declare variable $FORMAT_DITA := "dita"; | |
declare variable $FORMAT_DITAMAP := "ditamap"; | |
declare function local:is-local-topicref($el as element()) as xs:boolean { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XPath ::= Expr | |
ParamList ::= Param ("," Param)* | |
Param ::= "$" EQName TypeDeclaration? | |
FunctionBody ::= EnclosedExpr | |
EnclosedExpr ::= "{" Expr "}" | |
Expr ::= ExprSingle ("," ExprSingle)* | |
ExprSingle ::= ForExpr | |
| LetExpr | |
| QuantifiedExpr | |
| IfExpr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet version="2.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
exclude-result-prefixes="xs"> | |
<xsl:output method="xml" indent="yes"/> | |
<xsl:template match="topicref[contains(@class, ' map/topicref ')][last()]"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet version="2.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
exclude-result-prefixes="xs"> | |
<xsl:output method="text"/> | |
<xsl:template match="/"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html | |
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xml:lang="en-us" lang="en-us"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<meta name="copyright" content="(C) Copyright 2005"/> | |
<meta name="DC.rights.owner" content="(C) Copyright 2005"/> | |
<meta name="DC.Type" content="concept"/> | |
<meta name="DC.Title" content="Table test"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Publish every .ditamap file in a directory in parallel. | |
# Use a DITAVAL file with the same basename as the .ditamap file for filtering. | |
find "$input_dir" -name "*.ditamap" | \ | |
parallel -I{} bash dita -i "{}" -filter "$input_dir/{/.}.ditaval" -f pdf -o "$output_dir" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn map' [f xs] (reduce (fn [x y] (conj x (f y))) [] xs)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:user | |
{:plugins [[lein-exec "0.3.1"] | |
[lein-typed "0.3.5"] | |
[lein-try "0.4.3"] | |
[lein-midje "3.1.3"] | |
[lein-autoreload "0.1.0"] | |
[venantius/ultra "0.3.4"] | |
[jonase/eastwood "0.2.1"] | |
[lein-bikeshed "0.2.0"] | |
[lein-kibit "0.0.8"] |