├── gradle.properties ├── src └── main │ ├── resources │ ├── epub │ │ ├── mimetype │ │ └── container.epub3.xml │ └── META-INF │ │ └── gradle-plugins │ │ └── docbook-reference.properties │ ├── psd │ ├── admon.psd │ └── background.psd │ ├── docbook │ ├── images │ │ ├── tip.png │ │ ├── logo.png │ │ ├── note.png │ │ ├── caution.png │ │ ├── warning.png │ │ ├── background.png │ │ └── important.png │ ├── css │ │ ├── manual-singlepage.css │ │ ├── manual-multipage.css │ │ ├── highlight.css │ │ └── manual.css │ └── xsl │ │ ├── xslthl │ │ ├── json-hl.xml │ │ ├── asciidoc-hl.xml │ │ ├── yaml-hl.xml │ │ ├── properties-hl.xml │ │ ├── ini-hl.xml │ │ ├── bourne-hl.xml │ │ ├── python-hl.xml │ │ ├── ruby-hl.xml │ │ ├── java-hl.xml │ │ ├── c-hl.xml │ │ ├── perl-hl.xml │ │ ├── html-hl.xml │ │ ├── javascript-hl.xml │ │ ├── cpp-hl.xml │ │ ├── php-hl.xml │ │ ├── csharp-hl.xml │ │ ├── css-hl.xml │ │ └── sql2003-hl.xml │ │ ├── epub.xsl │ │ ├── html-singlepage.xsl │ │ ├── xslthl-config.xml │ │ ├── common.xsl │ │ ├── html-multipage.xsl │ │ ├── html.xsl │ │ └── pdf.xsl │ └── groovy │ └── DocbookReferencePlugin.groovy ├── settings.gradle ├── .wrapper ├── gradle-wrapper.jar └── gradle-wrapper.properties ├── wrapper.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── README.md ├── gradlew.bat ├── gradlew └── LICENSE /gradle.properties: -------------------------------------------------------------------------------- 1 | version=0.3.2-SNAPSHOT 2 | -------------------------------------------------------------------------------- /src/main/resources/epub/mimetype: -------------------------------------------------------------------------------- 1 | application/epub+zip 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'docbook-reference-plugin' 2 | -------------------------------------------------------------------------------- /src/main/psd/admon.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/docbook-reference-plugin/master/src/main/psd/admon.psd -------------------------------------------------------------------------------- /src/main/resources/META-INF/gradle-plugins/docbook-reference.properties: -------------------------------------------------------------------------------- 1 | implementation-class=DocbookReferencePlugin 2 | -------------------------------------------------------------------------------- /.wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/docbook-reference-plugin/master/.wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/main/psd/background.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/docbook-reference-plugin/master/src/main/psd/background.psd -------------------------------------------------------------------------------- /wrapper.gradle: -------------------------------------------------------------------------------- 1 | task wrapper(type:Wrapper) { 2 | jarFile = ".wrapper/gradle-wrapper.jar" 3 | gradleVersion = '1.11' 4 | } 5 | -------------------------------------------------------------------------------- /src/main/docbook/images/tip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/docbook-reference-plugin/master/src/main/docbook/images/tip.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/docbook-reference-plugin/master/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/main/docbook/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/docbook-reference-plugin/master/src/main/docbook/images/logo.png -------------------------------------------------------------------------------- /src/main/docbook/images/note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/docbook-reference-plugin/master/src/main/docbook/images/note.png -------------------------------------------------------------------------------- /src/main/docbook/images/caution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/docbook-reference-plugin/master/src/main/docbook/images/caution.png -------------------------------------------------------------------------------- /src/main/docbook/images/warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/docbook-reference-plugin/master/src/main/docbook/images/warning.png -------------------------------------------------------------------------------- /src/main/docbook/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/docbook-reference-plugin/master/src/main/docbook/images/background.png -------------------------------------------------------------------------------- /src/main/docbook/images/important.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/docbook-reference-plugin/master/src/main/docbook/images/important.png -------------------------------------------------------------------------------- /src/main/docbook/css/manual-singlepage.css: -------------------------------------------------------------------------------- 1 | @IMPORT url("manual.css"); 2 | 3 | body { 4 | background: url("../images/background.png") no-repeat center top; 5 | } 6 | 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | build 3 | !*/src/*/*/org/springframework/build 4 | *.sw? 5 | .classpath 6 | .project 7 | .settings 8 | bin 9 | *.iml 10 | *.ipr 11 | *.iws 12 | .idea -------------------------------------------------------------------------------- /src/main/docbook/css/manual-multipage.css: -------------------------------------------------------------------------------- 1 | @IMPORT url("manual.css"); 2 | 3 | body.firstpage { 4 | background: url("../images/background.png") no-repeat center top; 5 | } 6 | 7 | div.part h1 { 8 | border-top: none; 9 | } 10 | -------------------------------------------------------------------------------- /.wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Feb 23 12:58:41 CET 2012 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=http\://services.gradle.org/distributions/gradle-1.11-bin.zip 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Mar 06 14:48:54 CET 2014 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=http\://services.gradle.org/distributions/gradle-1.11-bin.zip 7 | -------------------------------------------------------------------------------- /src/main/resources/epub/container.epub3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/main/docbook/css/highlight.css: -------------------------------------------------------------------------------- 1 | /* 2 | code highlight CSS resemblign the Eclipse IDE default color schema 3 | @author Costin Leau 4 | */ 5 | 6 | .hl-keyword { 7 | color: #7F0055; 8 | font-weight: bold; 9 | } 10 | 11 | .hl-comment { 12 | color: #3F5F5F; 13 | font-style: italic; 14 | } 15 | 16 | .hl-multiline-comment { 17 | color: #3F5FBF; 18 | font-style: italic; 19 | } 20 | 21 | .hl-tag { 22 | color: #3F7F7F; 23 | } 24 | 25 | .hl-attribute { 26 | color: #7F007F; 27 | } 28 | 29 | .hl-value { 30 | color: #2A00FF; 31 | } 32 | 33 | .hl-string { 34 | color: #2A00FF; 35 | } -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl/json-hl.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | # 4 | 5 | " 6 | \ 7 | 8 | 9 | ' 10 | \ 11 | 12 | 13 | @ 14 | ( 15 | ) 16 | 17 | 18 | . 19 | e 20 | f 21 | d 22 | l 23 | 24 | 25 | 26 | true 27 | false 28 | 29 | 30 | { 31 | } 32 | , 33 | [ 34 | ] 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/epub.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl/asciidoc-hl.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | //// 10 | //// 11 | 12 | 13 | // 14 | 15 | 16 | 17 | ^(={1,6} .+)$ 18 | 19 | MULTILINE 20 | 21 | 22 | ^(\.[^\.\s].+)$ 23 | 24 | MULTILINE 25 | 26 | 27 | ^(:!?\w.*?:) 28 | 29 | MULTILINE 30 | 31 | 32 | ^(-|\*{1,5}|\d*\.{1,5})(?= .+$) 33 | 34 | MULTILINE 35 | 36 | 37 | ^(\[.+\])$ 38 | 39 | MULTILINE 40 | 41 | 42 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/html-singlepage.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 24 | 25 | 26 | 27 | 28 | css/manual-singlepage.css 29 | 30 | 31 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl/yaml-hl.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | # 4 | 5 | " 6 | \ 7 | 8 | 9 | ' 10 | \ 11 | 12 | 13 | @ 14 | ( 15 | ) 16 | 17 | 18 | . 19 | e 20 | f 21 | d 22 | l 23 | 24 | 25 | 26 | true 27 | false 28 | 29 | 30 | { 31 | } 32 | , 33 | [ 34 | ] 35 | 36 | 37 | 38 | ^(---)$ 39 | 40 | MULTILINE 41 | 42 | 43 | ^(.+?)(?==|:) 44 | 45 | MULTILINE 46 | 47 | 48 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl/properties-hl.xml: -------------------------------------------------------------------------------- 1 | 2 | 31 | 32 | # 33 | 34 | ^(.+?)(?==|:) 35 | 36 | MULTILINE 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/common.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 26 | 27 | 28 | 1 29 | 0 30 | 1 31 | 32 | 33 | 34 | images/ 35 | .png 36 | 37 | 38 | book toc,title 39 | 3 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl/ini-hl.xml: -------------------------------------------------------------------------------- 1 | 2 | 31 | 32 | ; 33 | 34 | 35 | ^(\[.+\]\s*)$ 36 | 37 | MULTILINE 38 | 39 | 40 | 41 | ^(.+)(?==) 42 | 43 | MULTILINE 44 | 45 | 46 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # This repository is no longer actively maintained by VMware, Inc. 2 | 3 | 4 | ## DocBook Plugin for Gradle 5 | Small plugin used internally by the Spring Team to create documentation from docbook 6 | sources. 7 | 8 | ### Configuration 9 | See [tags][1] to determine the 10 | latest available version. Then configure the plugin in your project as 11 | follows, using [spring-framework/build.gradle][2] as an example: 12 | ```groovy 13 | buildscript { 14 | repositories { 15 | maven { url 'http://repo.spring.io/plugins-release' } 16 | } 17 | dependencies { 18 | classpath 'io.spring.gradle:docbook-reference-plugin:0.3.0' 19 | } 20 | } 21 | 22 | // ... 23 | 24 | configure(rootproject) { 25 | apply plugin: 'docbook-reference' 26 | 27 | reference { 28 | sourceDir = file('src/reference/docbook') 29 | pdfFilename = 'spring-framework-reference.pdf' 30 | 31 | // optionally 32 | 33 | // configure fop for pdf generation 34 | fopUserConfig = file('src/reference/fop/fop-userconfig.xml') 35 | 36 | // Configure which files have ${} expanded 37 | expandPlaceholders = '**/index.xml, **/other.xml' 38 | 39 | // Delete the index.fo after creating PDF 40 | retainFo = false 41 | } 42 | 43 | task docsZip(type: Zip) { 44 | group = 'Distribution' 45 | baseName = 'spring-framework' 46 | classifier = 'docs' 47 | 48 | // ... 49 | 50 | from (reference) { 51 | into 'reference' 52 | } 53 | } 54 | 55 | // ... 56 | 57 | artifacts { 58 | archives docsZip 59 | } 60 | } 61 | ``` 62 | See contents of the [spring-framework/src/reference/docbook][3] for details. 63 | 64 | 65 | ### Usage 66 | ``` 67 | $ gradle referenceHtmlMulti 68 | $ gradle referenceHtmlSingle 69 | $ gradle referencePdf 70 | $ gradle referenceEpub 71 | $ gradle reference # all of the above 72 | $ gradle build # depends on `reference` because of "artifacts" arrangement 73 | ``` 74 | 75 | ### Output 76 | ``` 77 | $ open build/reference/html/index.html 78 | $ open build/reference/htmlsingle/index.html 79 | $ open build/reference/pdf/spring-framework-reference.pdf 80 | $ open build/reference/epub/spring-framework-reference.epub 81 | ``` 82 | 83 | ### Maintenance 84 | See [How to release the docbook reference plugin][4] wiki page. 85 | 86 | [1]: https://github.com/SpringSource/gradle-plugins/tags 87 | [2]: https://github.com/SpringSource/spring-framework/blob/master/build.gradle 88 | [3]: https://github.com/SpringSource/spring-framework/tree/master/src/reference/docbook 89 | [4]: https://github.com/SpringSource/gradle-plugins/wiki/How-to-release-the-docbook-reference-plugin 90 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/html-multipage.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 24 | 25 | 26 | 27 | 28 | css/manual-multipage.css 29 | 30 | '5' 31 | '1' 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | firstpage 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl/bourne-hl.xml: -------------------------------------------------------------------------------- 1 | 2 | 27 | 28 | # 29 | 30 | << 31 | ' 32 | " 33 | - 34 | 35 | 36 | 37 | 38 | " 39 | \ 40 | 41 | 42 | ' 43 | \ 44 | 45 | 46 | 47 | 0x 48 | 49 | 50 | 51 | . 52 | 53 | 54 | 55 | 56 | 57 | if 58 | then 59 | else 60 | elif 61 | fi 62 | case 63 | esac 64 | for 65 | while 66 | until 67 | do 68 | done 69 | 70 | exec 71 | shift 72 | exit 73 | times 74 | break 75 | export 76 | trap 77 | continue 78 | readonly 79 | wait 80 | eval 81 | return 82 | 83 | cd 84 | echo 85 | hash 86 | pwd 87 | read 88 | set 89 | test 90 | type 91 | ulimit 92 | umask 93 | unset 94 | 95 | 96 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl/python-hl.xml: -------------------------------------------------------------------------------- 1 | 2 | 31 | 32 | 33 | 34 | @ 35 | ( 36 | ) 37 | 38 | # 39 | 40 | """ 41 | 42 | 43 | 44 | ''' 45 | 46 | 47 | 48 | " 49 | \ 50 | 51 | 52 | ' 53 | \ 54 | 55 | 56 | 0x 57 | l 58 | 59 | 60 | 61 | . 62 | 63 | e 64 | l 65 | 66 | 67 | 68 | and 69 | del 70 | from 71 | not 72 | while 73 | as 74 | elif 75 | global 76 | or 77 | with 78 | assert 79 | else 80 | if 81 | pass 82 | yield 83 | break 84 | except 85 | import 86 | print 87 | class 88 | exec 89 | in 90 | raise 91 | continue 92 | finally 93 | is 94 | return 95 | def 96 | for 97 | lambda 98 | try 99 | 100 | 101 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl/ruby-hl.xml: -------------------------------------------------------------------------------- 1 | 2 | 31 | 32 | # 33 | 34 | << 35 | 36 | 37 | 38 | " 39 | \ 40 | 41 | 42 | %Q{ 43 | } 44 | \ 45 | 46 | 47 | %/ 48 | / 49 | \ 50 | 51 | 52 | ' 53 | \ 54 | 55 | 56 | %q{ 57 | } 58 | \ 59 | 60 | 61 | 0x 62 | 63 | 64 | 65 | . 66 | e 67 | 68 | 69 | 70 | alias 71 | and 72 | BEGIN 73 | begin 74 | break 75 | case 76 | class 77 | def 78 | defined 79 | do 80 | else 81 | elsif 82 | END 83 | end 84 | ensure 85 | false 86 | for 87 | if 88 | in 89 | module 90 | next 91 | nil 92 | not 93 | or 94 | redo 95 | rescue 96 | retry 97 | return 98 | self 99 | super 100 | then 101 | true 102 | undef 103 | unless 104 | until 105 | when 106 | while 107 | yield 108 | 109 | 110 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl/java-hl.xml: -------------------------------------------------------------------------------- 1 | 2 | 31 | 32 | 33 | /** 34 | */ 35 | 36 | 37 | 38 | /* 39 | */ 40 | 41 | // 42 | 43 | " 44 | \ 45 | 46 | 47 | ' 48 | \ 49 | 50 | 51 | @ 52 | ( 53 | ) 54 | 55 | 56 | 0x 57 | 58 | 59 | 60 | . 61 | e 62 | f 63 | d 64 | l 65 | 66 | 67 | 68 | abstract 69 | boolean 70 | break 71 | byte 72 | case 73 | catch 74 | char 75 | class 76 | const 77 | continue 78 | default 79 | do 80 | double 81 | else 82 | extends 83 | final 84 | finally 85 | float 86 | for 87 | goto 88 | if 89 | implements 90 | import 91 | instanceof 92 | int 93 | interface 94 | long 95 | native 96 | new 97 | package 98 | private 99 | protected 100 | public 101 | return 102 | short 103 | static 104 | strictfp 105 | super 106 | switch 107 | synchronized 108 | this 109 | throw 110 | throws 111 | transient 112 | try 113 | void 114 | volatile 115 | while 116 | 117 | 118 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl/c-hl.xml: -------------------------------------------------------------------------------- 1 | 2 | 29 | 30 | 31 | /** 32 | */ 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | /* 41 | */ 42 | 43 | // 44 | 45 | 46 | # 47 | \ 48 | 49 | 50 | 51 | 52 | " 53 | \ 54 | 55 | 56 | ' 57 | \ 58 | 59 | 60 | 0x 61 | ul 62 | lu 63 | u 64 | l 65 | 66 | 67 | 68 | . 69 | 70 | e 71 | ul 72 | lu 73 | u 74 | f 75 | l 76 | 77 | 78 | 79 | auto 80 | _Bool 81 | break 82 | case 83 | char 84 | _Complex 85 | const 86 | continue 87 | default 88 | do 89 | double 90 | else 91 | enum 92 | extern 93 | float 94 | for 95 | goto 96 | if 97 | _Imaginary 98 | inline 99 | int 100 | long 101 | register 102 | restrict 103 | return 104 | short 105 | signed 106 | sizeof 107 | static 108 | struct 109 | switch 110 | typedef 111 | union 112 | unsigned 113 | void 114 | volatile 115 | while 116 | 117 | 118 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl/perl-hl.xml: -------------------------------------------------------------------------------- 1 | 2 | 31 | 32 | # 33 | 34 | << 35 | ' 36 | " 37 | 38 | 39 | 40 | " 41 | \ 42 | 43 | 44 | ' 45 | \ 46 | 47 | 48 | 49 | 0x 50 | 51 | 52 | 53 | . 54 | 55 | 56 | 57 | 58 | if 59 | unless 60 | while 61 | until 62 | foreach 63 | else 64 | elsif 65 | for 66 | when 67 | default 68 | given 69 | 70 | caller 71 | continue 72 | die 73 | do 74 | dump 75 | eval 76 | exit 77 | goto 78 | last 79 | next 80 | redo 81 | return 82 | sub 83 | wantarray 84 | 85 | caller 86 | import 87 | local 88 | my 89 | package 90 | use 91 | 92 | do 93 | import 94 | no 95 | package 96 | require 97 | use 98 | 99 | bless 100 | dbmclose 101 | dbmopen 102 | package 103 | ref 104 | tie 105 | tied 106 | untie 107 | use 108 | 109 | and 110 | or 111 | not 112 | eq 113 | ne 114 | lt 115 | gt 116 | le 117 | ge 118 | cmp 119 | 120 | 121 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl/html-hl.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 14 | 15 | 16 | a 17 | abbr 18 | address 19 | area 20 | article 21 | aside 22 | audio 23 | b 24 | base 25 | bdi 26 | blockquote 27 | body 28 | br 29 | button 30 | caption 31 | canvas 32 | cite 33 | code 34 | command 35 | col 36 | colgroup 37 | dd 38 | del 39 | dialog 40 | div 41 | dl 42 | dt 43 | em 44 | embed 45 | fieldset 46 | figcaption 47 | figure 48 | font 49 | form 50 | footer 51 | h1 52 | h2 53 | h3 54 | h4 55 | h5 56 | h6 57 | head 58 | header 59 | hr 60 | html 61 | i 62 | iframe 63 | img 64 | input 65 | ins 66 | kbd 67 | label 68 | legend 69 | li 70 | link 71 | map 72 | mark 73 | menu 74 | menu 75 | meta 76 | nav 77 | noscript 78 | object 79 | ol 80 | optgroup 81 | option 82 | p 83 | param 84 | pre 85 | q 86 | samp 87 | script 88 | section 89 | select 90 | small 91 | source 92 | span 93 | strong 94 | style 95 | sub 96 | summary 97 | sup 98 | table 99 | tbody 100 | td 101 | textarea 102 | tfoot 103 | th 104 | thead 105 | time 106 | title 107 | tr 108 | track 109 | u 110 | ul 111 | var 112 | video 113 | wbr 114 | xmp 115 | 116 | 117 | 118 | 119 | xsl: 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl/javascript-hl.xml: -------------------------------------------------------------------------------- 1 | 2 | 31 | 32 | 33 | /* 34 | */ 35 | 36 | // 37 | 38 | " 39 | \ 40 | 41 | 42 | ' 43 | \ 44 | 45 | 46 | 0x 47 | 48 | 49 | 50 | . 51 | e 52 | 53 | 54 | 55 | break 56 | case 57 | catch 58 | continue 59 | default 60 | delete 61 | do 62 | else 63 | finally 64 | for 65 | function 66 | if 67 | in 68 | instanceof 69 | new 70 | return 71 | switch 72 | this 73 | throw 74 | try 75 | typeof 76 | var 77 | void 78 | while 79 | with 80 | 81 | abstract 82 | boolean 83 | byte 84 | char 85 | class 86 | const 87 | debugger 88 | double 89 | enum 90 | export 91 | extends 92 | final 93 | float 94 | goto 95 | implements 96 | import 97 | int 98 | interface 99 | long 100 | native 101 | package 102 | private 103 | protected 104 | public 105 | short 106 | static 107 | super 108 | synchronized 109 | throws 110 | transient 111 | volatile 112 | 113 | 114 | prototype 115 | 116 | Array 117 | Boolean 118 | Date 119 | Error 120 | EvalError 121 | Function 122 | Math 123 | Number 124 | Object 125 | RangeError 126 | ReferenceError 127 | RegExp 128 | String 129 | SyntaxError 130 | TypeError 131 | URIError 132 | 133 | decodeURI 134 | decodeURIComponent 135 | encodeURI 136 | encodeURIComponent 137 | eval 138 | isFinite 139 | isNaN 140 | parseFloat 141 | parseInt 142 | 143 | Infinity 144 | NaN 145 | undefined 146 | 147 | 148 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl/cpp-hl.xml: -------------------------------------------------------------------------------- 1 | 2 | 31 | 32 | 33 | /** 34 | */ 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | /* 43 | */ 44 | 45 | // 46 | 47 | 48 | # 49 | \ 50 | 51 | 52 | 53 | 54 | " 55 | \ 56 | 57 | 58 | ' 59 | \ 60 | 61 | 62 | 0x 63 | ul 64 | lu 65 | u 66 | l 67 | 68 | 69 | 70 | . 71 | 72 | e 73 | ul 74 | lu 75 | u 76 | f 77 | l 78 | 79 | 80 | 81 | 82 | auto 83 | _Bool 84 | break 85 | case 86 | char 87 | _Complex 88 | const 89 | continue 90 | default 91 | do 92 | double 93 | else 94 | enum 95 | extern 96 | float 97 | for 98 | goto 99 | if 100 | _Imaginary 101 | inline 102 | int 103 | long 104 | register 105 | restrict 106 | return 107 | short 108 | signed 109 | sizeof 110 | static 111 | struct 112 | switch 113 | typedef 114 | union 115 | unsigned 116 | void 117 | volatile 118 | while 119 | 120 | asm 121 | dynamic_cast 122 | namespace 123 | reinterpret_cast 124 | try 125 | bool 126 | explicit 127 | new 128 | static_cast 129 | typeid 130 | catch 131 | false 132 | operator 133 | template 134 | typename 135 | class 136 | friend 137 | private 138 | this 139 | using 140 | const_cast 141 | inline 142 | public 143 | throw 144 | virtual 145 | delete 146 | mutable 147 | protected 148 | true 149 | wchar_t 150 | 151 | 152 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl/php-hl.xml: -------------------------------------------------------------------------------- 1 | 2 | 31 | 32 | 33 | /** 34 | */ 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | /* 43 | */ 44 | 45 | // 46 | # 47 | 48 | " 49 | \ 50 | 51 | 52 | 53 | ' 54 | \ 55 | 56 | 57 | 58 | <<< 59 | 60 | 61 | 0x 62 | 63 | 64 | 65 | . 66 | e 67 | 68 | 69 | 70 | and 71 | or 72 | xor 73 | __FILE__ 74 | exception 75 | __LINE__ 76 | array 77 | as 78 | break 79 | case 80 | class 81 | const 82 | continue 83 | declare 84 | default 85 | die 86 | do 87 | echo 88 | else 89 | elseif 90 | empty 91 | enddeclare 92 | endfor 93 | endforeach 94 | endif 95 | endswitch 96 | endwhile 97 | eval 98 | exit 99 | extends 100 | for 101 | foreach 102 | function 103 | global 104 | if 105 | include 106 | include_once 107 | isset 108 | list 109 | new 110 | print 111 | require 112 | require_once 113 | return 114 | static 115 | switch 116 | unset 117 | use 118 | var 119 | while 120 | __FUNCTION__ 121 | __CLASS__ 122 | __METHOD__ 123 | final 124 | php_user_filter 125 | interface 126 | implements 127 | extends 128 | public 129 | private 130 | protected 131 | abstract 132 | clone 133 | try 134 | catch 135 | throw 136 | cfunction 137 | old_function 138 | true 139 | false 140 | 141 | namespace 142 | __NAMESPACE__ 143 | goto 144 | __DIR__ 145 | 146 | 147 | 148 | 149 | ?> 150 | <?php 151 | <?= 152 | 153 | 154 | 155 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/html.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 26 | 27 | 28 | 29 | 30 | 31 | 1 32 | 33 | 34 | 1 35 | 36 | 37 | 38 | 120 39 | images/callouts/ 40 | .png 41 | 42 | 43 | text/css 44 | 45 | text-align: left 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | , 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 |
113 |

Authors

114 | 115 |
116 |
117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | # 134 | 135 | 136 | 137 | 138 | 139 | 140 |
141 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl/csharp-hl.xml: -------------------------------------------------------------------------------- 1 | 2 | 31 | 32 | 33 | /** 34 | */ 35 | 36 | 37 | 38 | /// 39 | 40 | 41 | 42 | /* 43 | */ 44 | 45 | // 46 | 47 | 48 | [ 49 | ] 50 | ( 51 | ) 52 | 53 | 54 | 55 | # 56 | \ 57 | 58 | 59 | 60 | 61 | 62 | @" 63 | " 64 | \ 65 | 66 | 67 | 68 | " 69 | \ 70 | 71 | 72 | ' 73 | \ 74 | 75 | 76 | 0x 77 | ul 78 | lu 79 | u 80 | l 81 | 82 | 83 | 84 | . 85 | 86 | e 87 | ul 88 | lu 89 | u 90 | f 91 | d 92 | m 93 | l 94 | 95 | 96 | 97 | abstract 98 | as 99 | base 100 | bool 101 | break 102 | byte 103 | case 104 | catch 105 | char 106 | checked 107 | class 108 | const 109 | continue 110 | decimal 111 | default 112 | delegate 113 | do 114 | double 115 | else 116 | enum 117 | event 118 | explicit 119 | extern 120 | false 121 | finally 122 | fixed 123 | float 124 | for 125 | foreach 126 | goto 127 | if 128 | implicit 129 | in 130 | int 131 | interface 132 | internal 133 | is 134 | lock 135 | long 136 | namespace 137 | new 138 | null 139 | object 140 | operator 141 | out 142 | override 143 | params 144 | private 145 | protected 146 | public 147 | readonly 148 | ref 149 | return 150 | sbyte 151 | sealed 152 | short 153 | sizeof 154 | stackalloc 155 | static 156 | string 157 | struct 158 | switch 159 | this 160 | throw 161 | true 162 | try 163 | typeof 164 | uint 165 | ulong 166 | unchecked 167 | unsafe 168 | ushort 169 | using 170 | virtual 171 | void 172 | volatile 173 | while 174 | 175 | 176 | 177 | add 178 | alias 179 | from 180 | get 181 | global 182 | group 183 | into 184 | join 185 | orderby 186 | partial 187 | remove 188 | select 189 | set 190 | value 191 | where 192 | yield 193 | 194 | 195 | -------------------------------------------------------------------------------- /src/main/docbook/css/manual.css: -------------------------------------------------------------------------------- 1 | @IMPORT url("highlight.css"); 2 | 3 | html { 4 | padding: 0pt; 5 | margin: 0pt; 6 | } 7 | 8 | body { 9 | color: #333333; 10 | margin: 15px 30px; 11 | font-family: Helvetica, Arial, Freesans, Clean, Sans-serif; 12 | line-height: 1.6; 13 | -webkit-font-smoothing: antialiased; 14 | } 15 | 16 | code { 17 | font-size: 16px; 18 | font-family: Consolas, "Liberation Mono", Courier, monospace; 19 | color: #6D180B; 20 | } 21 | 22 | :not(pre)>code { 23 | background-color: #F2F2F2; 24 | border: 1px solid #CCCCCC; 25 | border-radius: 4px; 26 | padding: 1px 3px 0; 27 | text-shadow: none; 28 | white-space: nowrap; 29 | } 30 | 31 | body>*:first-child { 32 | margin-top: 0 !important; 33 | } 34 | 35 | div { 36 | margin: 0pt; 37 | } 38 | 39 | hr { 40 | border: 1px solid #CCCCCC; 41 | background: #CCCCCC; 42 | } 43 | 44 | h1,h2,h3,h4,h5,h6 { 45 | color: #000000; 46 | cursor: text; 47 | font-weight: bold; 48 | margin: 30px 0 10px; 49 | padding: 0; 50 | } 51 | 52 | h1,h2,h3 { 53 | margin: 40px 0 10px; 54 | } 55 | 56 | h1 { 57 | margin: 70px 0 30px; 58 | padding-top: 20px; 59 | } 60 | 61 | div.part h1 { 62 | border-top: 1px dotted #CCCCCC; 63 | } 64 | 65 | h1,h1 code { 66 | font-size: 32px; 67 | } 68 | 69 | h2,h2 code { 70 | font-size: 24px; 71 | } 72 | 73 | h3,h3 code { 74 | font-size: 20px; 75 | } 76 | 77 | h4,h1 code,h5,h5 code,h6,h6 code { 78 | font-size: 18px; 79 | } 80 | 81 | div.book,div.chapter,div.appendix,div.part,div.preface { 82 | min-width: 300px; 83 | max-width: 1200px; 84 | margin: 0 auto; 85 | } 86 | 87 | p.releaseinfo { 88 | font-weight: bold; 89 | margin-bottom: 40px; 90 | margin-top: 40px; 91 | } 92 | 93 | div.authorgroup { 94 | line-height: 1; 95 | } 96 | 97 | p.copyright { 98 | line-height: 1; 99 | margin-bottom: -5px; 100 | } 101 | 102 | .legalnotice p { 103 | font-style: italic; 104 | font-size: 14px; 105 | line-height: 1; 106 | } 107 | 108 | div.titlepage+p,div.titlepage+p { 109 | margin-top: 0; 110 | } 111 | 112 | pre { 113 | line-height: 1.0; 114 | color: black; 115 | } 116 | 117 | a { 118 | color: #4183C4; 119 | text-decoration: none; 120 | } 121 | 122 | p { 123 | margin: 15px 0; 124 | text-align: left; 125 | } 126 | 127 | ul,ol { 128 | padding-left: 30px; 129 | } 130 | 131 | li p { 132 | margin: 0; 133 | } 134 | 135 | div.table { 136 | margin: 1em; 137 | padding: 0.5em; 138 | text-align: center; 139 | } 140 | 141 | div.table table,div.informaltable table { 142 | display: table; 143 | width: 100%; 144 | } 145 | 146 | div.table td { 147 | padding-left: 7px; 148 | padding-right: 7px; 149 | } 150 | 151 | .sidebar { 152 | line-height: 1.4; 153 | padding: 0 20px; 154 | background-color: #F8F8F8; 155 | border: 1px solid #CCCCCC; 156 | border-radius: 3px 3px 3px 3px; 157 | } 158 | 159 | .sidebar p.title { 160 | color: #6D180B; 161 | } 162 | 163 | pre.programlisting,pre.screen { 164 | font-size: 15px; 165 | padding: 6px 10px; 166 | background-color: #F8F8F8; 167 | border: 1px solid #CCCCCC; 168 | border-radius: 3px 3px 3px 3px; 169 | clear: both; 170 | overflow: auto; 171 | line-height: 1.4; 172 | font-family: Consolas, "Liberation Mono", Courier, monospace; 173 | } 174 | 175 | table { 176 | border-collapse: collapse; 177 | border-spacing: 0; 178 | border: 1px solid #DDDDDD !important; 179 | border-radius: 4px !important; 180 | border-collapse: separate !important; 181 | line-height: 1.6; 182 | } 183 | 184 | table thead { 185 | background: #F5F5F5; 186 | } 187 | 188 | table tr { 189 | border: none; 190 | border-bottom: none; 191 | } 192 | 193 | table th { 194 | font-weight: bold; 195 | } 196 | 197 | table th,table td { 198 | border: none !important; 199 | padding: 6px 13px; 200 | } 201 | 202 | table tr:nth-child(2n) { 203 | background-color: #F8F8F8; 204 | } 205 | 206 | td p { 207 | margin: 0 0 15px 0; 208 | } 209 | 210 | div.table-contents td p { 211 | margin: 0; 212 | } 213 | 214 | div.important *,div.note *,div.tip *,div.warning *,div.navheader *,div.navfooter *,div.calloutlist * 215 | { 216 | border: none !important; 217 | background: none !important; 218 | margin: 0; 219 | } 220 | 221 | div.important p,div.note p,div.tip p,div.warning p { 222 | color: #6F6F6F; 223 | line-height: 1.6; 224 | } 225 | 226 | div.important code,div.note code,div.tip code,div.warning code { 227 | background-color: #F2F2F2 !important; 228 | border: 1px solid #CCCCCC !important; 229 | border-radius: 4px !important; 230 | padding: 1px 3px 0 !important; 231 | text-shadow: none !important; 232 | white-space: nowrap !important; 233 | } 234 | 235 | .note th,.tip th,.warning th { 236 | display: none; 237 | } 238 | 239 | .note tr:first-child td,.tip tr:first-child td,.warning tr:first-child td 240 | { 241 | border-right: 1px solid #CCCCCC !important; 242 | padding-top: 10px; 243 | } 244 | 245 | div.calloutlist p,div.calloutlist td { 246 | padding: 0; 247 | margin: 0; 248 | } 249 | 250 | div.calloutlist>table>tbody>tr>td:first-child { 251 | padding-left: 10px; 252 | width: 30px !important; 253 | } 254 | 255 | div.important,div.note,div.tip,div.warning { 256 | margin-left: 0px !important; 257 | margin-right: 20px !important; 258 | margin-top: 20px; 259 | margin-bottom: 20px; 260 | padding-top: 10px; 261 | padding-bottom: 10px; 262 | } 263 | 264 | div.toc { 265 | line-height: 1.2; 266 | } 267 | 268 | dl,dt { 269 | margin-top: 1px; 270 | margin-bottom: 0; 271 | } 272 | 273 | div.toc>dl>dt { 274 | font-size: 32px; 275 | font-weight: bold; 276 | margin: 30px 0 10px 0; 277 | display: block; 278 | } 279 | 280 | div.toc>dl>dd>dl>dt { 281 | font-size: 24px; 282 | font-weight: bold; 283 | margin: 20px 0 10px 0; 284 | display: block; 285 | } 286 | 287 | div.toc>dl>dd>dl>dd>dl>dt { 288 | font-weight: bold; 289 | font-size: 20px; 290 | margin: 10px 0 0 0; 291 | } 292 | 293 | tbody.footnotes * { 294 | border: none !important; 295 | } 296 | 297 | div.footnote p { 298 | margin: 0; 299 | line-height: 1; 300 | } 301 | 302 | div.footnote p sup { 303 | margin-right: 6px; 304 | vertical-align: middle; 305 | } 306 | 307 | div.navheader { 308 | border-bottom: 1px solid #CCCCCC; 309 | } 310 | 311 | div.navfooter { 312 | border-top: 1px solid #CCCCCC; 313 | } 314 | 315 | .title { 316 | margin-left: -1em; 317 | padding-left: 1em; 318 | } 319 | 320 | .title>a { 321 | position: absolute; 322 | visibility: hidden; 323 | display: block; 324 | font-size: 0.85em; 325 | margin-top: 0.05em; 326 | margin-left: -1em; 327 | vertical-align: text-top; 328 | color: black; 329 | } 330 | 331 | .title>a:before { 332 | content: "\00A7"; 333 | } 334 | 335 | .title:hover>a,.title>a:hover,.title:hover>a:hover { 336 | visibility: visible; 337 | } 338 | 339 | .title:focus>a,.title>a:focus,.title:focus>a:focus { 340 | outline: 0; 341 | } 342 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl/css-hl.xml: -------------------------------------------------------------------------------- 1 | 2 | 32 | 33 | 34 | /* 35 | */ 36 | 37 | 38 | " 39 | \ 40 | 41 | 42 | 43 | ' 44 | \ 45 | 46 | 47 | 48 | . 49 | 50 | 51 | 52 | @charset 53 | @import 54 | @media 55 | @page 56 | 57 | 58 | 59 | - 60 | azimuth 61 | background-attachment 62 | background-color 63 | background-image 64 | background-position 65 | background-repeat 66 | background 67 | border-collapse 68 | border-color 69 | border-spacing 70 | border-style 71 | border-top 72 | border-right 73 | border-bottom 74 | border-left 75 | border-top-color 76 | border-right-color 77 | border-bottom-color 78 | border-left-color 79 | border-top-style 80 | border-right-style 81 | border-bottom-style 82 | border-left-style 83 | border-top-width 84 | border-right-width 85 | border-bottom-width 86 | border-left-width 87 | border-width 88 | border 89 | bottom 90 | caption-side 91 | clear 92 | clip 93 | color 94 | content 95 | counter-increment 96 | counter-reset 97 | cue-after 98 | cue-before 99 | cue 100 | cursor 101 | direction 102 | display 103 | elevation 104 | empty-cells 105 | float 106 | font-family 107 | font-size 108 | font-style 109 | font-variant 110 | font-weight 111 | font 112 | height 113 | left 114 | letter-spacing 115 | line-height 116 | list-style-image 117 | list-style-position 118 | list-style-type 119 | list-style 120 | margin-right 121 | margin-left 122 | margin-top 123 | margin-bottom 124 | margin 125 | max-height 126 | max-width 127 | min-height 128 | min-width 129 | orphans 130 | outline-color 131 | outline-style 132 | outline-width 133 | outline 134 | overflow 135 | padding-top 136 | padding-right 137 | padding-bottom 138 | padding-left 139 | padding 140 | page-break-after 141 | page-break-before 142 | page-break-inside 143 | pause-after 144 | pause-before 145 | pause 146 | pitch-range 147 | pitch 148 | play-during 149 | position 150 | quotes 151 | richness 152 | right 153 | speak-header 154 | speak-numeral 155 | speak-punctuation 156 | speak 157 | speech-rate 158 | stress 159 | table-layout 160 | text-align 161 | text-decoration 162 | text-indent 163 | text-transform 164 | top 165 | unicode-bidi 166 | vertical-align 167 | visibility 168 | voice-family 169 | volume 170 | white-space 171 | widows 172 | width 173 | word-spacing 174 | z-index 175 | 176 | 177 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /src/main/groovy/DocbookReferencePlugin.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2002-2011 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License") 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | import java.io.File 17 | import java.util.zip.* 18 | 19 | import javax.xml.parsers.SAXParserFactory 20 | import javax.xml.transform.* 21 | import javax.xml.transform.Transformer 22 | import javax.xml.transform.sax.SAXResult 23 | import javax.xml.transform.sax.SAXSource 24 | import javax.xml.transform.stream.StreamResult 25 | import javax.xml.transform.stream.StreamSource 26 | 27 | import org.apache.fop.apps.* 28 | import org.apache.xml.resolver.CatalogManager 29 | import org.apache.xml.resolver.tools.CatalogResolver 30 | import org.gradle.api.* 31 | import org.gradle.api.logging.LogLevel 32 | import org.gradle.api.tasks.* 33 | import org.slf4j.LoggerFactory 34 | import org.xml.sax.InputSource 35 | import org.xml.sax.XMLReader 36 | 37 | import com.icl.saxon.TransformerFactoryImpl 38 | 39 | class DocbookReferencePlugin implements Plugin { 40 | 41 | def void apply(Project project) { 42 | 43 | project.plugins.apply('base') // for `clean` task 44 | 45 | def tasks = project.tasks 46 | 47 | def multi = tasks.create("referenceHtmlMulti", HtmlMultiDocbookReferenceTask) 48 | def single = tasks.create("referenceHtmlSingle", HtmlSingleDocbookReferenceTask) 49 | def pdf = tasks.create("referencePdf", PdfDocbookReferenceTask) 50 | def epub = tasks.create("referenceEpub", EpubDocbookReferenceTask) 51 | 52 | def reference = tasks.create("reference") { 53 | group = 'Documentation' 54 | description = "Generates HTML and PDF reference documentation." 55 | dependsOn([multi, single, pdf, epub]) 56 | 57 | ext.sourceDir = null // e.g. new File('src/reference') 58 | ext.outputDir = new File(project.buildDir, "reference") 59 | ext.pdfFilename = "${project.rootProject.name}-reference.pdf" 60 | ext.epubFilename = "${project.rootProject.name}-reference.epub" 61 | ext.sourceFileName = 'index.xml' 62 | ext.expandPlaceholders = '**/index.xml' 63 | ext.fopUserConfig = null 64 | ext.retainFo = false 65 | outputs.dir outputDir 66 | } 67 | 68 | project.gradle.taskGraph.whenReady { 69 | if (multi.sourceDir == null) multi.sourceDir = reference.sourceDir 70 | if (single.sourceDir == null) single.sourceDir = reference.sourceDir 71 | if (pdf.sourceDir == null) pdf.sourceDir = reference.sourceDir 72 | if (epub.sourceDir == null) epub.sourceDir = reference.sourceDir 73 | 74 | if (multi.outputDir == null) multi.outputDir = reference.outputDir 75 | if (single.outputDir == null) single.outputDir = reference.outputDir 76 | if (pdf.outputDir == null) pdf.outputDir = reference.outputDir 77 | if (epub.outputDir == null) epub.outputDir = reference.outputDir 78 | 79 | if (multi.sourceFileName == null) multi.sourceFileName = reference.sourceFileName 80 | if (single.sourceFileName == null) single.sourceFileName = reference.sourceFileName 81 | if (pdf.sourceFileName == null) pdf.sourceFileName = reference.sourceFileName 82 | if (epub.sourceFileName == null) epub.sourceFileName = reference.sourceFileName 83 | } 84 | 85 | } 86 | 87 | } 88 | 89 | abstract class AbstractDocbookReferenceTask extends DefaultTask { 90 | 91 | @InputDirectory 92 | File sourceDir // e.g. 'src/reference' 93 | 94 | @Input 95 | String sourceFileName 96 | 97 | String stylesheet 98 | 99 | String xdir 100 | 101 | @OutputDirectory 102 | File outputDir = new File(project.getBuildDir(), "reference") 103 | 104 | @TaskAction 105 | public final void transform() { 106 | // the docbook tasks issue spurious content to the console. redirect to INFO level 107 | // so it doesn't show up in the default log level of LIFECYCLE unless the user has 108 | // run gradle with '-d' or '-i' switches -- in that case show them everything 109 | switch (project.gradle.startParameter.logLevel) { 110 | case LogLevel.DEBUG: 111 | case LogLevel.INFO: 112 | break 113 | default: 114 | logging.captureStandardOutput(LogLevel.INFO) 115 | logging.captureStandardError(LogLevel.INFO) 116 | } 117 | 118 | // TODO call only once 119 | unpack() 120 | sourceDir = filterDocbookSources(sourceDir) 121 | 122 | SAXParserFactory factory = new org.apache.xerces.jaxp.SAXParserFactoryImpl() 123 | factory.setXIncludeAware(true) 124 | outputDir.mkdirs() 125 | 126 | File srcFile = new File(sourceDir, sourceFileName) 127 | String outputFilename = srcFile.getName().substring(0, srcFile.getName().length() - 4) + '.' + this.getExtension() 128 | 129 | File oDir = new File(outputDir, xdir) 130 | File outputFile = new File(oDir, outputFilename) 131 | 132 | Result result = new StreamResult(outputFile.getAbsolutePath()) 133 | CatalogResolver resolver = new CatalogResolver(createCatalogManager()) 134 | InputSource inputSource = new InputSource(srcFile.getAbsolutePath()) 135 | 136 | XMLReader reader = factory.newSAXParser().getXMLReader() 137 | reader.setEntityResolver(resolver) 138 | TransformerFactory transformerFactory = new TransformerFactoryImpl() 139 | transformerFactory.setURIResolver(resolver) 140 | 141 | def File stylesheetFile = new File(new File(sourceDir, "xsl"), stylesheet) 142 | if(!stylesheetFile.exists()) { 143 | stylesheetFile = new File("${project.buildDir}/docbook-resources/xsl/${stylesheet}") 144 | } 145 | URL url = stylesheetFile.toURI().toURL() 146 | Source source = new StreamSource(url.openStream(), url.toExternalForm()) 147 | Transformer transformer = transformerFactory.newTransformer(source) 148 | 149 | transformer.setParameter("highlight.source", "1") 150 | transformer.setParameter("highlight.xslthl.config", new File("${project.buildDir}/docbook-resources/xsl", "xslthl-config.xml").toURI().toURL()) 151 | 152 | preTransform(transformer, srcFile, outputFile) 153 | 154 | transformer.transform(new SAXSource(reader, inputSource), result) 155 | 156 | postTransform(outputFile) 157 | } 158 | 159 | abstract protected String getExtension() 160 | 161 | protected void preTransform(Transformer transformer, File sourceFile, File outputFile) { 162 | } 163 | 164 | protected void postTransform(File outputFile) { 165 | copyImages(project, "${project.buildDir}/reference/${xdir}/images") 166 | copyCss(project, xdir) 167 | } 168 | 169 | /** 170 | * @param sourceDir directory of unfiltered sources 171 | * @return directory of filtered sources 172 | */ 173 | private File filterDocbookSources(File sourceDir) { 174 | def workDir = new File("${project.buildDir}/reference-work") 175 | workDir.mkdirs() 176 | 177 | def expandables = project.reference.expandPlaceholders.split(',') 178 | logger.debug('Files that will have placeholders expanded:' + expandables) 179 | 180 | // copy everything but those requiring expansion 181 | project.copy { 182 | into(workDir) 183 | from(sourceDir) { exclude expandables } 184 | } 185 | 186 | // copy and expand ${...} variables along the way 187 | // e.g.: ${version} needs to be replaced in the header 188 | project.copy { 189 | into(workDir) 190 | from(sourceDir) { include expandables } 191 | expand(version: "${project.version}") 192 | } 193 | 194 | // Copy and process any custom titlepages 195 | File titlePageSource = new File(sourceDir, "titlepage") 196 | if(titlePageSource.exists()) { 197 | def titlePageWorkDir = new File(new File(workDir, "xsl"), "titlepage") 198 | titlePageWorkDir.mkdirs() 199 | Transformer transformer = new TransformerFactoryImpl().newTransformer( 200 | new StreamSource(this.class.classLoader.getResourceAsStream("docbook/template/titlepage.xsl"))) 201 | transformer.setParameter("ns", "http://www.w3.org/1999/xhtml") 202 | titlePageSource.eachFileMatch( ~/.*\.xml/, { f -> 203 | File output = new File(titlePageWorkDir, f.name.replace(".xml", ".xsl")) 204 | transformer.transform(new StreamSource(f), new StreamResult(output)) 205 | // Ugly hack to work around Java XSLT bug 206 | output.setText(output.text.replaceFirst("xsl:stylesheet", "xsl:stylesheet xmlns:exsl=\"http://exslt.org/common\" ")) 207 | }) 208 | } 209 | return workDir 210 | } 211 | 212 | private void unpack() { 213 | def resourcesZipPath = 'META-INF/docbook-resources.zip' 214 | def resourcesZip = this.class.classLoader.getResource(resourcesZipPath) 215 | if (resourcesZip == null) { 216 | throw new GradleException("could not find ${resourcesZipPath} on the classpath") 217 | } 218 | // the file is a jar:file - write it to disk first 219 | def zipInputStream = resourcesZip.getContent() 220 | def zipFile = new File("${project.buildDir}/docbook-resources.zip") 221 | copyFile(zipInputStream, zipFile) 222 | project.copy { 223 | from project.zipTree(zipFile) 224 | into "${project.buildDir}/docbook-resources" 225 | } 226 | } 227 | 228 | static void copyFile(InputStream source, File destFile) { 229 | destFile.createNewFile() 230 | copy(source, new FileOutputStream(destFile), true) 231 | } 232 | 233 | static void copy(InputStream source, OutputStream destination, boolean closeDestination) { 234 | try { 235 | byte[] buffer = new byte[4096] 236 | int bytesRead 237 | while ((bytesRead = source.read(buffer)) > 0) { 238 | destination.write(buffer, 0, bytesRead) 239 | } 240 | } finally { 241 | if (source != null) { 242 | source.close() 243 | } 244 | if (destination != null && closeDestination) { 245 | destination.close() 246 | } 247 | } 248 | } 249 | 250 | 251 | // for some reason, statically typing the return value leads to the following 252 | // error when Gradle tries to subclass the task class at runtime: 253 | // java.lang.NoClassDefFoundError: org/apache/xml/resolver/CatalogManager 254 | private Object createCatalogManager() { 255 | CatalogManager manager = new CatalogManager() 256 | manager.setIgnoreMissingProperties(true) 257 | ClassLoader classLoader = this.getClass().getClassLoader() 258 | StringBuilder builder = new StringBuilder() 259 | String docbookCatalogName = "docbook/catalog.xml" 260 | URL docbookCatalog = classLoader.getResource(docbookCatalogName) 261 | 262 | if (docbookCatalog == null) { 263 | throw new IllegalStateException("Docbook catalog " + docbookCatalogName + " could not be found in " + classLoader) 264 | } 265 | 266 | builder.append(docbookCatalog.toExternalForm()) 267 | 268 | Enumeration enumeration = classLoader.getResources("/catalog.xml") 269 | while (enumeration.hasMoreElements()) { 270 | builder.append('') 271 | URL resource = (URL) enumeration.nextElement() 272 | builder.append(resource.toExternalForm()) 273 | } 274 | String catalogFiles = builder.toString() 275 | manager.setCatalogFiles(catalogFiles) 276 | return manager 277 | } 278 | 279 | protected void copyImages(def project, def dir) { 280 | // copy plugin provided resources first 281 | project.copy { 282 | into dir 283 | from "${project.buildDir}/docbook-resources/images" 284 | } 285 | 286 | // allow for project provided resources to override 287 | project.copy { 288 | into dir 289 | from "${sourceDir}/images" 290 | } 291 | } 292 | 293 | protected String copyCss(def project, def dir) { 294 | def targetPath = "${project.buildDir}/reference/${dir}/css" 295 | 296 | // copy plugin provided resources first 297 | project.copy { 298 | into targetPath 299 | from "${project.buildDir}/docbook-resources/css" 300 | } 301 | 302 | // allow for project provided resources to override 303 | project.copy { 304 | into targetPath 305 | from "${sourceDir}/css" 306 | } 307 | 308 | return targetPath 309 | } 310 | } 311 | 312 | class HtmlSingleDocbookReferenceTask extends AbstractDocbookReferenceTask { 313 | 314 | public HtmlSingleDocbookReferenceTask() { 315 | setDescription('Generates single-page HTML reference documentation.') 316 | stylesheet = "html-singlepage.xsl" 317 | xdir = 'htmlsingle' 318 | } 319 | 320 | @Override 321 | protected String getExtension() { 322 | return 'html' 323 | } 324 | } 325 | 326 | 327 | class HtmlMultiDocbookReferenceTask extends AbstractDocbookReferenceTask { 328 | 329 | public HtmlMultiDocbookReferenceTask() { 330 | setDescription('Generates multi-page HTML reference documentation.') 331 | stylesheet = "html-multipage.xsl" 332 | xdir = 'html' 333 | } 334 | 335 | @Override 336 | protected String getExtension() { 337 | return 'html' 338 | } 339 | 340 | @Override 341 | protected void preTransform(Transformer transformer, File sourceFile, File outputFile) { 342 | String rootFilename = outputFile.getName() 343 | rootFilename = rootFilename.substring(0, rootFilename.lastIndexOf('.')) 344 | transformer.setParameter("root.filename", rootFilename) 345 | transformer.setParameter("base.dir", outputFile.getParent() + File.separator) 346 | } 347 | } 348 | 349 | 350 | class PdfDocbookReferenceTask extends AbstractDocbookReferenceTask { 351 | 352 | public PdfDocbookReferenceTask() { 353 | setDescription('Generates PDF reference documentation.') 354 | stylesheet = "pdf.xsl" 355 | xdir = 'pdf' 356 | } 357 | 358 | @Override 359 | protected String getExtension() { 360 | return 'fo' 361 | } 362 | 363 | /** 364 | * From the FOP usage guide 365 | */ 366 | @Override 367 | protected void postTransform(File foFile) { 368 | String imagesPath = "${project.buildDir}/reference/${xdir}/images" 369 | copyImages(project, imagesPath) 370 | 371 | FopFactory fopFactory = FopFactory.newInstance() 372 | if (project.reference.fopUserConfig != null) { 373 | fopFactory.setUserConfig(project.reference.fopUserConfig) 374 | } 375 | fopFactory.setBaseURL(project.file("${project.buildDir}/reference/pdf").toURI().toURL().toExternalForm()) 376 | 377 | OutputStream out = null 378 | final File pdfFile = getPdfOutputFile(foFile) 379 | logger.debug("Transforming 'fo' file " + foFile + " to PDF: " + pdfFile) 380 | 381 | try { 382 | out = new BufferedOutputStream(new FileOutputStream(pdfFile)) 383 | 384 | Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, out) 385 | 386 | TransformerFactory factory = TransformerFactory.newInstance() 387 | Transformer transformer = factory.newTransformer() 388 | 389 | Source src = new StreamSource(foFile) 390 | src.setSystemId(foFile.toURI().toURL().toExternalForm()) 391 | 392 | Result res = new SAXResult(fop.getDefaultHandler()) 393 | 394 | transformer.transform(src, res) 395 | 396 | } finally { 397 | if (out != null) { 398 | out.close() 399 | } 400 | } 401 | 402 | if (!project.reference.retainFo && !foFile.delete()) { 403 | logger.warn("Failed to delete 'fo' file " + foFile) 404 | } 405 | 406 | if (!project.delete(imagesPath)) { 407 | logger.warn("Failed to delete 'images' path " + imagesPath) 408 | } 409 | } 410 | 411 | private File getPdfOutputFile(File foFile) { 412 | return new File(foFile.parent, project.reference.pdfFilename) 413 | } 414 | 415 | } 416 | 417 | 418 | class EpubDocbookReferenceTask extends AbstractDocbookReferenceTask { 419 | 420 | public EpubDocbookReferenceTask() { 421 | setDescription('Generates EPUB reference documentation.') 422 | stylesheet = "epub.xsl" 423 | xdir = 'epub' 424 | } 425 | 426 | @Override 427 | protected String getExtension() { 428 | return 'epub' 429 | } 430 | 431 | @Override 432 | protected void preTransform(Transformer transformer, File sourceFile, File outputFile) { 433 | def workDir = new File("${project.buildDir}/reference-epub-work") 434 | workDir.mkdirs() 435 | File images = new File(workDir, "images") 436 | images.mkdirs() 437 | copyImages(project, images) 438 | String rootFilename = project.reference.epubFilename 439 | rootFilename = rootFilename.substring(0, rootFilename.lastIndexOf('.')) 440 | transformer.setParameter("root.filename", rootFilename) 441 | transformer.setParameter("base.dir", workDir.getPath() + File.separator) 442 | transformer.setParameter("epub.package.dir", workDir.getPath() + File.separator) 443 | transformer.setParameter("epub.metainf.dir", File.separator + "META-INF" + File.separator) 444 | transformer.setParameter("chunk.base.dir", workDir.getPath() + File.separator) 445 | transformer.setParameter("epub.package.filename", "content.opf") 446 | } 447 | 448 | @Override 449 | protected void postTransform(File outputFile) { 450 | outputFile.delete() 451 | File workDir = new File("${project.buildDir}/reference-epub-work") 452 | InputStream container = getClass().getResourceAsStream("/epub/container.epub3.xml") 453 | copyFile(container, new File(workDir, "META-INF" + File.separator + "container.xml")) 454 | byte [] mimetypeData = "application/epub+zip".getBytes ("UTF-8") 455 | final File mimetype = new File(workDir, "mimetype") 456 | 457 | // Delete any existing file 458 | mimetype.delete () 459 | 460 | ZipOutputStream zip = new ZipOutputStream(new FileOutputStream( 461 | new File(outputFile.parent, project.reference.epubFilename))) 462 | 463 | // Write the mimetype entry first 464 | CRC32 crc = new CRC32 () 465 | crc.update(mimetypeData) 466 | ZipEntry entry = new ZipEntry ("mimetype") 467 | entry.setMethod(ZipEntry.STORED) 468 | entry.setSize(mimetypeData.length ) 469 | entry.setCrc(crc.getValue ()) 470 | zip.putNextEntry(entry) 471 | zip.write(mimetypeData) 472 | zip.closeEntry() 473 | 474 | // Write the contents 475 | writeZip(zip, "", workDir) 476 | 477 | zip.close() 478 | } 479 | 480 | private void writeZip(ZipOutputStream zip, String prefix, File dir) { 481 | File[] files = dir.listFiles() 482 | for(File file in files) { 483 | if(file.isFile()) { 484 | FileInputStream inputStream = new FileInputStream(file) 485 | zip.putNextEntry(new ZipEntry(prefix + file.getName())) 486 | copy(inputStream, zip, false) 487 | zip.closeEntry() 488 | } 489 | if(file.isDirectory() && !file.getName().startsWith('.')) { 490 | zip.putNextEntry(new ZipEntry(prefix + file.getName() + "/")) 491 | zip.closeEntry() 492 | writeZip(zip, prefix + file.getName() + "/", file) 493 | } 494 | } 495 | } 496 | 497 | } 498 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/xslthl/sql2003-hl.xml: -------------------------------------------------------------------------------- 1 | 2 | 27 | 28 | -- 29 | 30 | /* 31 | */ 32 | 33 | 34 | ' 35 | 36 | 37 | 38 | U' 39 | ' 40 | 41 | 42 | 43 | B' 44 | ' 45 | 46 | 47 | 48 | N' 49 | ' 50 | 51 | 52 | 53 | X' 54 | ' 55 | 56 | 57 | 58 | . 59 | 60 | e 61 | 62 | 63 | 64 | 65 | 66 | A 67 | ABS 68 | ABSOLUTE 69 | ACTION 70 | ADA 71 | ADMIN 72 | AFTER 73 | ALWAYS 74 | ASC 75 | ASSERTION 76 | ASSIGNMENT 77 | ATTRIBUTE 78 | ATTRIBUTES 79 | AVG 80 | BEFORE 81 | BERNOULLI 82 | BREADTH 83 | C 84 | CARDINALITY 85 | CASCADE 86 | CATALOG_NAME 87 | CATALOG 88 | CEIL 89 | CEILING 90 | CHAIN 91 | CHAR_LENGTH 92 | CHARACTER_LENGTH 93 | CHARACTER_SET_CATALOG 94 | CHARACTER_SET_NAME 95 | CHARACTER_SET_SCHEMA 96 | CHARACTERISTICS 97 | CHARACTERS 98 | CHECKED 99 | CLASS_ORIGIN 100 | COALESCE 101 | COBOL 102 | CODE_UNITS 103 | COLLATION_CATALOG 104 | COLLATION_NAME 105 | COLLATION_SCHEMA 106 | COLLATION 107 | COLLECT 108 | COLUMN_NAME 109 | COMMAND_FUNCTION_CODE 110 | COMMAND_FUNCTION 111 | COMMITTED 112 | CONDITION_NUMBER 113 | CONDITION 114 | CONNECTION_NAME 115 | CONSTRAINT_CATALOG 116 | CONSTRAINT_NAME 117 | CONSTRAINT_SCHEMA 118 | CONSTRAINTS 119 | CONSTRUCTORS 120 | CONTAINS 121 | CONVERT 122 | CORR 123 | COUNT 124 | COVAR_POP 125 | COVAR_SAMP 126 | CUME_DIST 127 | CURRENT_COLLATION 128 | CURSOR_NAME 129 | DATA 130 | DATETIME_INTERVAL_CODE 131 | DATETIME_INTERVAL_PRECISION 132 | DEFAULTS 133 | DEFERRABLE 134 | DEFERRED 135 | DEFINED 136 | DEFINER 137 | DEGREE 138 | DENSE_RANK 139 | DEPTH 140 | DERIVED 141 | DESC 142 | DESCRIPTOR 143 | DIAGNOSTICS 144 | DISPATCH 145 | DOMAIN 146 | DYNAMIC_FUNCTION_CODE 147 | DYNAMIC_FUNCTION 148 | EQUALS 149 | EVERY 150 | EXCEPTION 151 | EXCLUDE 152 | EXCLUDING 153 | EXP 154 | EXTRACT 155 | FINAL 156 | FIRST 157 | FLOOR 158 | FOLLOWING 159 | FORTRAN 160 | FOUND 161 | FUSION 162 | G 163 | GENERAL 164 | GO 165 | GOTO 166 | GRANTED 167 | HIERARCHY 168 | IMPLEMENTATION 169 | INCLUDING 170 | INCREMENT 171 | INITIALLY 172 | INSTANCE 173 | INSTANTIABLE 174 | INTERSECTION 175 | INVOKER 176 | ISOLATION 177 | K 178 | KEY_MEMBER 179 | KEY_TYPE 180 | KEY 181 | LAST 182 | LENGTH 183 | LEVEL 184 | LN 185 | LOCATOR 186 | LOWER 187 | M 188 | MAP 189 | MATCHED 190 | MAX 191 | MAXVALUE 192 | MESSAGE_LENGTH 193 | MESSAGE_OCTET_LENGTH 194 | MESSAGE_TEXT 195 | MIN 196 | MINVALUE 197 | MOD 198 | MORE 199 | MUMPS 200 | NAME 201 | NAMES 202 | NESTING 203 | NEXT 204 | NORMALIZE 205 | NORMALIZED 206 | NULLABLE 207 | NULLIF 208 | NULLS 209 | NUMBER 210 | OBJECT 211 | OCTET_LENGTH 212 | OCTETS 213 | OPTION 214 | OPTIONS 215 | ORDERING 216 | ORDINALITY 217 | OTHERS 218 | OVERLAY 219 | OVERRIDING 220 | PAD 221 | PARAMETER_MODE 222 | PARAMETER_NAME 223 | PARAMETER_ORDINAL_POSITION 224 | PARAMETER_SPECIFIC_CATALOG 225 | PARAMETER_SPECIFIC_NAME 226 | PARAMETER_SPECIFIC_SCHEMA 227 | PARTIAL 228 | PASCAL 229 | PATH 230 | PERCENT_RANK 231 | PERCENTILE_CONT 232 | PERCENTILE_DISC 233 | PLACING 234 | PLI 235 | POSITION 236 | POWER 237 | PRECEDING 238 | PRESERVE 239 | PRIOR 240 | PRIVILEGES 241 | PUBLIC 242 | RANK 243 | READ 244 | RELATIVE 245 | REPEATABLE 246 | RESTART 247 | RETURNED_CARDINALITY 248 | RETURNED_LENGTH 249 | RETURNED_OCTET_LENGTH 250 | RETURNED_SQLSTATE 251 | ROLE 252 | ROUTINE_CATALOG 253 | ROUTINE_NAME 254 | ROUTINE_SCHEMA 255 | ROUTINE 256 | ROW_COUNT 257 | ROW_NUMBER 258 | SCALE 259 | SCHEMA_NAME 260 | SCHEMA 261 | SCOPE_CATALOG 262 | SCOPE_NAME 263 | SCOPE_SCHEMA 264 | SECTION 265 | SECURITY 266 | SELF 267 | SEQUENCE 268 | SERIALIZABLE 269 | SERVER_NAME 270 | SESSION 271 | SETS 272 | SIMPLE 273 | SIZE 274 | SOURCE 275 | SPACE 276 | SPECIFIC_NAME 277 | SQRT 278 | STATE 279 | STATEMENT 280 | STDDEV_POP 281 | STDDEV_SAMP 282 | STRUCTURE 283 | STYLE 284 | SUBCLASS_ORIGIN 285 | SUBSTRING 286 | SUM 287 | TABLE_NAME 288 | TABLESAMPLE 289 | TEMPORARY 290 | TIES 291 | TOP_LEVEL_COUNT 292 | TRANSACTION_ACTIVE 293 | TRANSACTION 294 | TRANSACTIONS_COMMITTED 295 | TRANSACTIONS_ROLLED_BACK 296 | TRANSFORM 297 | TRANSFORMS 298 | TRANSLATE 299 | TRIGGER_CATALOG 300 | TRIGGER_NAME 301 | TRIGGER_SCHEMA 302 | TRIM 303 | TYPE 304 | UNBOUNDED 305 | UNCOMMITTED 306 | UNDER 307 | UNNAMED 308 | USAGE 309 | USER_DEFINED_TYPE_CATALOG 310 | USER_DEFINED_TYPE_CODE 311 | USER_DEFINED_TYPE_NAME 312 | USER_DEFINED_TYPE_SCHEMA 313 | VIEW 314 | WORK 315 | WRITE 316 | ZONE 317 | 318 | ADD 319 | ALL 320 | ALLOCATE 321 | ALTER 322 | AND 323 | ANY 324 | ARE 325 | ARRAY 326 | AS 327 | ASENSITIVE 328 | ASYMMETRIC 329 | AT 330 | ATOMIC 331 | AUTHORIZATION 332 | BEGIN 333 | BETWEEN 334 | BIGINT 335 | BINARY 336 | BLOB 337 | BOOLEAN 338 | BOTH 339 | BY 340 | CALL 341 | CALLED 342 | CASCADED 343 | CASE 344 | CAST 345 | CHAR 346 | CHARACTER 347 | CHECK 348 | CLOB 349 | CLOSE 350 | COLLATE 351 | COLUMN 352 | COMMIT 353 | CONNECT 354 | CONSTRAINT 355 | CONTINUE 356 | CORRESPONDING 357 | CREATE 358 | CROSS 359 | CUBE 360 | CURRENT_DATE 361 | CURRENT_DEFAULT_TRANSFORM_GROUP 362 | CURRENT_PATH 363 | CURRENT_ROLE 364 | CURRENT_TIME 365 | CURRENT_TIMESTAMP 366 | CURRENT_TRANSFORM_GROUP_FOR_TYPE 367 | CURRENT_USER 368 | CURRENT 369 | CURSOR 370 | CYCLE 371 | DATE 372 | DAY 373 | DEALLOCATE 374 | DEC 375 | DECIMAL 376 | DECLARE 377 | DEFAULT 378 | DELETE 379 | DEREF 380 | DESCRIBE 381 | DETERMINISTIC 382 | DISCONNECT 383 | DISTINCT 384 | DOUBLE 385 | DROP 386 | DYNAMIC 387 | EACH 388 | ELEMENT 389 | ELSE 390 | END 391 | END-EXEC 392 | ESCAPE 393 | EXCEPT 394 | EXEC 395 | EXECUTE 396 | EXISTS 397 | EXTERNAL 398 | FALSE 399 | FETCH 400 | FILTER 401 | FLOAT 402 | FOR 403 | FOREIGN 404 | FREE 405 | FROM 406 | FULL 407 | FUNCTION 408 | GET 409 | GLOBAL 410 | GRANT 411 | GROUP 412 | GROUPING 413 | HAVING 414 | HOLD 415 | HOUR 416 | IDENTITY 417 | IMMEDIATE 418 | IN 419 | INDICATOR 420 | INNER 421 | INOUT 422 | INPUT 423 | INSENSITIVE 424 | INSERT 425 | INT 426 | INTEGER 427 | INTERSECT 428 | INTERVAL 429 | INTO 430 | IS 431 | ISOLATION 432 | JOIN 433 | LANGUAGE 434 | LARGE 435 | LATERAL 436 | LEADING 437 | LEFT 438 | LIKE 439 | LOCAL 440 | LOCALTIME 441 | LOCALTIMESTAMP 442 | MATCH 443 | MEMBER 444 | MERGE 445 | METHOD 446 | MINUTE 447 | MODIFIES 448 | MODULE 449 | MONTH 450 | MULTISET 451 | NATIONAL 452 | NATURAL 453 | NCHAR 454 | NCLOB 455 | NEW 456 | NO 457 | NONE 458 | NOT 459 | NULL 460 | NUMERIC 461 | OF 462 | OLD 463 | ON 464 | ONLY 465 | OPEN 466 | OR 467 | ORDER 468 | OUT 469 | OUTER 470 | OUTPUT 471 | OVER 472 | OVERLAPS 473 | PARAMETER 474 | PARTITION 475 | PRECISION 476 | PREPARE 477 | PRIMARY 478 | PROCEDURE 479 | RANGE 480 | READS 481 | REAL 482 | RECURSIVE 483 | REF 484 | REFERENCES 485 | REFERENCING 486 | REGR_AVGX 487 | REGR_AVGY 488 | REGR_COUNT 489 | REGR_INTERCEPT 490 | REGR_R2 491 | REGR_SLOPE 492 | REGR_SXX 493 | REGR_SXY 494 | REGR_SYY 495 | RELEASE 496 | RESULT 497 | RETURN 498 | RETURNS 499 | REVOKE 500 | RIGHT 501 | ROLLBACK 502 | ROLLUP 503 | ROW 504 | ROWS 505 | SAVEPOINT 506 | SCROLL 507 | SEARCH 508 | SECOND 509 | SELECT 510 | SENSITIVE 511 | SESSION_USER 512 | SET 513 | SIMILAR 514 | SMALLINT 515 | SOME 516 | SPECIFIC 517 | SPECIFICTYPE 518 | SQL 519 | SQLEXCEPTION 520 | SQLSTATE 521 | SQLWARNING 522 | START 523 | STATIC 524 | SUBMULTISET 525 | SYMMETRIC 526 | SYSTEM_USER 527 | SYSTEM 528 | TABLE 529 | THEN 530 | TIME 531 | TIMESTAMP 532 | TIMEZONE_HOUR 533 | TIMEZONE_MINUTE 534 | TO 535 | TRAILING 536 | TRANSLATION 537 | TREAT 538 | TRIGGER 539 | TRUE 540 | UESCAPE 541 | UNION 542 | UNIQUE 543 | UNKNOWN 544 | UNNEST 545 | UPDATE 546 | UPPER 547 | USER 548 | USING 549 | VALUE 550 | VALUES 551 | VAR_POP 552 | VAR_SAMP 553 | VARCHAR 554 | VARYING 555 | WHEN 556 | WHENEVER 557 | WHERE 558 | WIDTH_BUCKET 559 | WINDOW 560 | WITH 561 | WITHIN 562 | WITHOUT 563 | YEAR 564 | 565 | 566 | -------------------------------------------------------------------------------- /src/main/docbook/xsl/pdf.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | auto 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | , 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | Copyright © 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | -5em 130 | -5em 131 | 8pt 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | please define title in your docbook file! 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 8pt 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | please define title in your docbook file! 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 0 271 | 0 272 | 0 273 | 274 | 275 | 276 | false 277 | 278 | 279 | Helvetica 280 | 10 281 | 8 282 | Helvetica 283 | 284 | 285 | 1.4 286 | 287 | 288 | 289 | left 290 | bold 291 | 292 | 293 | pt 294 | 295 | 296 | 297 | 299 | 300 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 0.6em 311 | 0.6em 312 | 0.6em 313 | 314 | 315 | pt 316 | 317 | 0.1em 318 | 0.1em 319 | 0.1em 320 | 321 | 322 | 323 | 0.4em 324 | 0.4em 325 | 0.4em 326 | 327 | 328 | pt 329 | 330 | 0.1em 331 | 0.1em 332 | 0.1em 333 | 334 | 335 | 336 | 0.4em 337 | 0.4em 338 | 0.4em 339 | 340 | 341 | pt 342 | 343 | 0.1em 344 | 0.1em 345 | 0.1em 346 | 347 | 348 | 349 | 0.3em 350 | 0.3em 351 | 0.3em 352 | 353 | 354 | pt 355 | 356 | 0.1em 357 | 0.1em 358 | 0.1em 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 4pt 367 | 4pt 368 | 4pt 369 | 4pt 370 | 371 | 372 | 373 | 0.1pt 374 | 0.1pt 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 7pt 391 | wrap 392 | 1 393 | 394 | 395 | 396 | 1em 397 | 1em 398 | 1em 399 | 0.1em 400 | 0.1em 401 | 0.1em 402 | 403 | #444444 404 | solid 405 | 0.1pt 406 | 0.5em 407 | 0.5em 408 | 0.5em 409 | 0.5em 410 | 0.5em 411 | 0.5em 412 | 413 | 414 | 415 | 1 416 | 417 | #F0F0F0 418 | 419 | 420 | 421 | 0.1em 422 | 0.1em 423 | 0.1em 424 | 0.1em 425 | 0.1em 426 | 0.1em 427 | 428 | 429 | 430 | 0.5em 431 | 0.5em 432 | 0.5em 433 | 0.1em 434 | 0.1em 435 | 0.1em 436 | 437 | 438 | 439 | #444444 440 | solid 441 | 0.1pt 442 | #F0F0F0 443 | 444 | 445 | 446 | 447 | 448 | 449 | normal 450 | italic 451 | 452 | 453 | pt 454 | 455 | false 456 | 0.1em 457 | 0.1em 458 | 0.1em 459 | 460 | 461 | 462 | 463 | 464 | 0 465 | 1 466 | 467 | 468 | 90 469 | 470 | 471 | 472 | 473 | 474 | figure after 475 | example after 476 | equation before 477 | table before 478 | procedure before 479 | 480 | 481 | 482 | 1 483 | 0pt 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | true 500 | 501 | 502 | 503 | 504 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 0.1em 540 | 2em 541 | .75pt 542 | solid 543 | #5c5c4f 544 | 0.5em 545 | 1.5em 546 | 1.5em 547 | 1.5em 548 | 1.5em 549 | 1.5em 550 | 1.5em 551 | 552 | 553 | 554 | 10pt 555 | bold 556 | false 557 | always 558 | 0 559 | 560 | 561 | 562 | 0em 563 | 0em 564 | 0em 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | --------------------------------------------------------------------------------