Advertisement
Guest User

Untitled

a guest
Sep 9th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.18 KB | None | 0 0
  1. {
  2. generalSettings: {
  3. //secondPassStylesheet: "./data/stylesheet2.json",
  4. enableDoubleRenderingOutline: "true",
  5. //bodiesToRender: "//body",
  6. bodiesToRender: "//body[empty(@name) or (@name != 'notes' and @name != 'comments')]",
  7. generateTOC: "true",
  8. generateFrontMatter: "true",
  9. generateNoteBackLinks: "true",
  10. generateInternalLinks: "true",
  11. transliterateMetaInfo: "true",
  12. forceTransliterateAuthor: "true",//"false",
  13. metaAuthorQuery: "(last-name, first-name, middle-name)",
  14. imageDpi: 168.212, // PRS-500/505/600/700/650/900/950, Kindle
  15. //imageDpi: 200, // PRS-300/350
  16. //imageDpi: 150, // Kindle DX
  17. stretchCover: "true",
  18. enableInlineImages: "true",//"false",
  19. fullCompression: "false",
  20. trackingSpaceCharRatio: 10000000, //Inter-character spacing disabled with 10000000 | in OLD was 5.0
  21. overrideImageTransparency: "",
  22. makeGrayImageTransparent: "true",//"false",
  23. cacheImages: "false",
  24. ignoreEmptyLineBeforeImage: "true",
  25. ignoreEmptyLineAfterImage: "true",
  26. strictImageSequence: "false",
  27. enableLinkPageNum: "false",
  28. linkPageNumFormat: "[%04d]",
  29. linkPageNumMax: 9999,
  30. hangingPunctuation: ".,;:'-"
  31. },
  32. fontFamilies: [
  33. {
  34. name: "sansSerif",
  35. regular: "./data/PT Sans-Regular.ttf",
  36. bold: "./data/PT Sans-Bold.ttf",
  37. italic: "./data/PT Sans-Italic.ttf",
  38. boldItalic: "./data/PT Sans-Bold-Italic.ttf"
  39. },
  40. {
  41. name: "serif",
  42. regular: "./data/PT Serif-Regular.ttf",
  43. bold: "./data/PT Serif-Bold.ttf",
  44. italic: "./data/PT Serif-Italic.ttf",
  45. boldItalic: "./data/PT Serif-Bold-Italic.ttf"
  46. },
  47. {
  48. name: "monospaced",
  49. regular: "./data/LiberationMono-Regular.ttf",
  50. bold: "./data/LiberationMono-Bold.ttf",
  51. italic: "./data/LiberationMono-Italic.ttf",
  52. boldItalic: "./data/LiberationMono-BoldItalic.ttf"
  53. }
  54. /*
  55. {
  56. name: "sansSerif",
  57. regular: "./data/FreeSans.ttf",
  58. bold: "./data/FreeSansBold.ttf",
  59. italic: "./data/FreeSansOblique.ttf",
  60. boldItalic: "./data/FreeSansBoldOblique.ttf"
  61. },
  62. {
  63. name: "serif",
  64. regular: "./data/DroidSerif-Regular.ttf",
  65. bold: "./data/DroidSerif-Bold.ttf",
  66. italic: "./data/DroidSerif-Italic.ttf",
  67. boldItalic: "./data/DroidSerif-BoldItalic.ttf"
  68. },
  69. {
  70. name: "monospaced",
  71. regular: "./data/LiberationMono-Regular.ttf",
  72. bold: "./data/LiberationMono-Bold.ttf",
  73. italic: "./data/LiberationMono-Italic.ttf",
  74. boldItalic: "./data/LiberationMono-BoldItalic.ttf"
  75. }
  76. {
  77. name: "sansSerif",
  78. regular: "c:/windows/fonts/calibri.ttf",
  79. bold: "c:/windows/fonts/calibrib.ttf",
  80. italic: "c:/windows/fonts/calibrii.ttf",
  81. boldItalic: "c:/windows/fonts/calibriz.ttf"
  82. },
  83. {
  84. name: "serif",
  85. regular: "c:/windows/fonts/CAMBRIA.TTC,0",
  86. bold: "c:/windows/fonts/CAMBRIAB.TTF",
  87. italic: "c:/windows/fonts/CAMBRIAI.TTF",
  88. boldItalic: "c:/windows/fonts/CAMBRIAZ.TTF"
  89. },
  90. {
  91. name: "monospaced",
  92. regular: "c:/windows/fonts/consola.ttf",
  93. bold: "c:/windows/fonts/consolab.ttf",
  94. italic: "c:/windows/fonts/consolai.ttf",
  95. boldItalic: "c:/windows/fonts/consolaz.ttf"
  96. }
  97. */
  98. ],
  99. pageStyle: {
  100. //values: 0, 90, 180, 270
  101. //usually has no visual effect, only PDF internals are different
  102. pageRotation: "0",
  103.  
  104. // PRS-500/505/600/700/650 Portrait
  105. //pageWidth: "88.184mm",
  106. //pageHeight: "113.854mm",
  107.  
  108. // PRS-500/505/600/700/650 Landscape
  109. //pageWidth: "118.384mm",
  110. //pageHeight: "83.654mm",
  111.  
  112. // PRS-300/350 Portrait
  113. //pageWidth: "74.168mm",
  114. //pageHeight: "95.758mm",
  115.  
  116. // PRS-300/350 Landscape
  117. //pageWidth: "99.568mm",
  118. //pageHeight: "70.358mm",
  119.  
  120. // PRS-900/950 Portrait
  121. //pageWidth: "88.184mm",
  122. //pageHeight: "147.678mm",
  123.  
  124. // PRS-900/950 Landscape
  125. //pageWidth: "152.208mm",
  126. //pageHeight: "83.654mm",
  127.  
  128. // PRS-900/950 Landscape 2-column
  129. //pageWidth: "75.802mm",
  130. //pageHeight: "83.654mm",
  131.  
  132. // Kindle 3/4 Portrait (calculated from 560x735 pixels of 0.151mm; another variant is 85.09mm x 111.76mm, yet another variant is 85.5mm x 112.3mm)
  133. pageWidth: "84.560mm",
  134. pageHeight: "110.985mm",
  135.  
  136. // Kindle 3/4 Landscape (calculated from 722x535 pixels of 0.151mm)
  137. //pageWidth: "109.022mm",
  138. //pageHeight: "80.785mm",
  139.  
  140. // Kindle DX Portrait
  141. //pageWidth: "132.757mm",
  142. //pageHeight: "194.733mm",
  143.  
  144. // Kindle DX Landscape
  145. //pageWidth: "196.427mm",
  146. //pageHeight: "131.064mm",
  147.  
  148. marginLeft: "1.0pt",
  149. marginRight: "1.0pt",
  150. marginTop: "-2.0pt",//"0.0pt",
  151. marginBottom: "0.0pt",//"1.0pt",
  152. imageExtraMargins: "10pt",
  153. marginMirroring: "false",
  154. sectionNewPage: {
  155. "0": 1.0,
  156. "1": 0.5
  157. },
  158.  
  159. backgroundColor: "",
  160. backgroundImage: "",
  161. header: {
  162. enabled: "false",
  163. dynamic: "true",
  164. //chapterTitle: "(ancestor-or-self::section)[2]/title//*[name()!='a']/text()",
  165. //chapterTitle: "string-join(ancestor-or-self::section/title[.//text()[matches(., '[^\\d\\s]')]]//*[name()!='a']/text(), '. ')",
  166. chapterTitle: "replace(string-join(ancestor-or-self::section/title//*[name()!='a']/text(), '. '), '([^\\s\\w])\\. ', '$1 ')",
  167. leftOdd: {
  168. enabled: "true",
  169. style: "headerLeft",
  170. border: 2, // TOP = 1; BOTTOM = 2; LEFT = 4; RIGHT = 8; NO_BORDER = 0; BOX = TOP + BOTTOM + LEFT + RIGHT;
  171. borderColor: "0x000000",
  172. // There are predefined variables $bookTitle, $authorFullName, $authorLastName, $authorFirstLastName, $authorFirstInitialLastName, $authorAllInitialsLastName
  173. // There are predefined dynamic variables $pageNum, $chapterTitle
  174. // There are predefined custom functions fb:cut-right(string, length) fb:cut-left(string, length)
  175. // There are standard xquery functions http://www.w3schools.com/xpath/xpath_functions.asp
  176. //query: "string-join(($authorFirstLastName, $bookTitle), ', ')"
  177. query: "fb:cut-right($authorFirstLastName, 30)"
  178. },
  179. centerOdd: {
  180. enabled: "false"
  181. },
  182. rightOdd: {
  183. enabled: "true",
  184. style: "headerRight",
  185. query: "fb:cut-right($bookTitle, 30)"
  186. },
  187. leftEven: {
  188. enabled: "true",
  189. query: "fb:cut-right($chapterTitle, 45)"
  190. },
  191. centerEven: {
  192. enabled: "false"
  193. },
  194. rightEven: {
  195. enabled: "true",
  196. style: "headerRight",
  197. query: "$pageNum"
  198. }
  199. },
  200.  
  201. enforcePageSize: "true",//"false",
  202. pageSizeEnforcerColor: "0xededed",//"0x7F7F7F",
  203. footnotes: "true",//"false",
  204. footnotesMaxLines: 16,//7,
  205. footnoteMaxLines: 999,
  206. tableCellsAutoWidth: false,
  207. preventWidows: "true"
  208. },
  209. hyphenationSettings: {
  210. defaultLanguage: "ru",
  211. hyphenate: "true",
  212. overrideLanguage: "false"
  213. },
  214. transformationSettings: {
  215. enabled: "true",//"false",
  216. outputDebugFile: "false",
  217. queryProlog: "declare default element namespace \"http://www.gribuser.ru/xml/fictionbook/2.0\"; declare namespace l = \"http://www.w3.org/1999/xlink\"; ",
  218. morpherProlog: "declare default element namespace \"http://www.gribuser.ru/xml/fictionbook/2.0\"; declare namespace l = \"http://www.w3.org/1999/xlink\"; ",
  219. transformationsMap: [
  220. /*
  221. { // make digits superscript in notes (depends on font)
  222. "query": "//a[@type='note']/text()",
  223. "morpher": "translate(., '0123456789', '\u2070\u00B9\u00B2\u00B3\u2074\u2075\u2076\u2077\u2078\u2079')"
  224. },
  225. */
  226. /*
  227. { // delete dash (with following space) when dash is first character of first paragraph of the section
  228. "query": "//p[1]/text()",
  229. "morpher": "replace(., '^(\u2012|\u2013|\u2014|\u2015)(\u00A0|\\s)*', '')"
  230. },
  231. */
  232. /*
  233. { //delete bracket at the end of the text node
  234. "query": "//text()[ends-with(., '[')]",
  235. "morpher": "replace(., '(.*)\\[$', '$1')"
  236. },
  237. { //delete bracket at the beginning of the text node
  238. "query": "//text()[starts-with(., ']')]",
  239. "morpher": "replace(., '^\\](.*)', '$1')"
  240. },
  241. */
  242. /*
  243. { // convert poem note to paragraphs, part 1
  244. "query": "//body[@name='notes']//section/poem",
  245. "morpher": ".//stanza/*"
  246. },
  247. { // convert poem note to paragraphs, part 2
  248. "query": "//body[@name='notes']//section/v",
  249. "morpher": "<p>{./* | text()}</p>"
  250. },
  251. */
  252. //!
  253. { //convert *-marked comments to notes
  254. "query": "//a/sup[text() = '*']",
  255. "morpher": "(<sup>{replace(string(./../@l:href), '#c_', '')}</sup>, attribute {'type'} {'note'})"
  256. },
  257. //i
  258. /*
  259. { // delete links with empty href
  260. "query": "//a[@l:href='']",
  261. "morpher": "()"
  262. },
  263. */
  264. //!
  265. { // merge notes bodies, part 1
  266. "query": "//body[@name='notes']",
  267. "morpher": "<body name='notes'>{//body[@name='notes' or @name='footnotes']/*}</body>"
  268. },
  269. { // merge notes bodies, part 2
  270. "query": "//body[@name='footnotes']",
  271. "morpher": "()"
  272. },
  273. //i
  274. /*
  275. { // fix image-wrapped-in-paragraph
  276. "query": "//p[exists(image) and count(*) = 1]",
  277. "morpher": "./*"
  278. },
  279. */
  280. /*
  281. { // convert table cells to paragraphs
  282. "query": "//td",
  283. "morpher": "<p>{./* | text()}</p>"
  284. },
  285. { // convert table headers to paragraphs
  286. "query": "//th",
  287. "morpher": "<p>{./* | text()}</p>"
  288. },
  289. { // remove table rows
  290. "query": "//tr",
  291. "morpher": "./*"
  292. },
  293. { // remove table
  294. "query": "//table",
  295. "morpher": "./*"
  296. },
  297. */
  298. /*
  299. { //add empty title to the sections without title
  300. "query": "//section[empty(./title)]/*[position()=1]",
  301. "morpher": "(<title><p/></title>,.)"
  302. },
  303. */
  304. //!
  305. { // remove square brackets from note link
  306. "query": "//a[@type='note']/text()",
  307. "morpher": "replace(., '[\\[\\]]', '')"
  308. },
  309. //i
  310. /*
  311. { // remove word "note" from note link
  312. "query": "//a[@type='note']/text()",
  313. "morpher": "replace(., 'note', '')"
  314. },
  315. */
  316. /*
  317. { // remove extra spaces from note link
  318. "query": "//a[@type='note']/text()",
  319. "morpher": "normalize-space(.)"
  320. },
  321. */
  322. //!
  323. { // make note links superscript
  324. "query": "//a[(@type='note' or @type='comment') and not(parent::sup or child::sup)]/text()",
  325. "morpher": "<sup>{.}</sup>"
  326. },
  327. //i
  328. /*
  329. { // replace note link with note text
  330. "query": "//a[@type='note']",
  331. "morpher": "declare variable $hid := ./@l:href; <emphasis> [{//body[@name='notes']//section[@id=substring($hid,2)]/*[local-name()!='title']}]</emphasis>"
  332. },
  333. */
  334. /*
  335. { // get rid of superscript inside note link
  336. "query": "//a[@type='note']//sup",
  337. "morpher": "./* | text()"
  338. },
  339. */
  340. /*
  341. { // get rid of superscript outside note link
  342. "query": "//sup[./a[@type='note']]",
  343. "morpher": "./a"
  344. },
  345. */
  346. /*
  347. { //replace emphasis inside cite with it's text
  348. "query": "//cite//emphasis",
  349. "morpher": "./text()"
  350. },
  351. */
  352. /*
  353. { //remove images
  354. "query": "//image",
  355. "morpher": "()"
  356. },
  357. */
  358. /*
  359. { // wrap notes body content in two sections, making notes third-level section
  360. "query": "//body[@name='notes']",
  361. "morpher": "<body name='notes'><section><section>{./*}</section></section></body>"
  362. },
  363. */
  364. /*
  365. { // add new line before and after "code"
  366. "query": "//code",
  367. "morpher": "<code>{('\n', ./* | text(), '\n')}</code>"
  368. },
  369. */
  370. /*
  371. { // replace a single root section of nameless (main) body with it's content
  372. "query": "//body[empty(@name) and count(section) = 1]/section",
  373. "morpher": "./*"
  374. },
  375. */
  376. ]
  377. },
  378. textPreprocessorSettings: {
  379. enabled: "true",
  380. makeEndUnbreakable: "false",
  381. makeReplacements: "true",
  382. replacementsMap: {
  383. //"\"(.*?)\"": "«$1»", //replacing quotes
  384. " \u2012 ": "\u00A0\u2012 ",
  385. " \u2013 ": "\u00A0\u2013 ",
  386. " \u2014 ": "\u00A0\u2014 ",
  387. " \u2015 ": "\u00A0\u2015 ",
  388. " \u2212 ": "\u00A0\u2212 ",
  389. " \u2010 ": "\u00A0\u2010 ",
  390. " \u002D ": "\u00A0\u002D "
  391. //below is commented out because doesn't look good on narrow page
  392. /*
  393. " \u0430 ": " \u0430\u00A0",
  394. " \u0432 ": " \u0432\u00A0",
  395. " \u0438 ": " \u0438\u00A0",
  396. " \u043A ": " \u043A\u00A0",
  397. " \u043E ": " \u043E\u00A0",
  398. " \u0441 ": " \u0441\u00A0",
  399. " \u0443 ": " \u0443\u00A0",
  400. " \u0410 ": " \u0410\u00A0",
  401. " \u0411\u0435\u0437 ": " \u0411\u0435\u0437\u00A0",
  402. " \u0412 ": " \u0412\u00A0",
  403. " \u0412\u043E ": " \u0412\u043E\u00A0",
  404. " \u0414\u0430 ": " \u0414\u0430\u00A0",
  405. " \u0414\u043E ": " \u0414\u043E\u00A0",
  406. " \u0414\u043B\u044F ": " \u0414\u043B\u044F\u00A0",
  407. " \u0417\u0430 ": " \u0417\u0430\u00A0",
  408. " \u0418 ": " \u0418\u00A0",
  409. " \u0418\u0437 ": " \u0418\u0437\u00A0",
  410. " \u0418\u043B\u0438 ": " \u0418\u043B\u0438\u00A0",
  411. " \u041A ": " \u041A\u00A0",
  412. " \u041A\u043E ": " \u041A\u043E\u00A0",
  413. " \u041A\u0430\u043A ": " \u041A\u0430\u043A\u00A0",
  414. " \u041D\u0430 ": " \u041D\u0430\u00A0",
  415. " \u041D\u043E ": " \u041D\u043E\u00A0",
  416. " \u041D\u0430\u0434 ": " \u041D\u0430\u0434\u00A0",
  417. " \u041F\u043E ": " \u041F\u043E\u00A0",
  418. " \u041F\u043E\u0434 ": " \u041F\u043E\u0434\u00A0",
  419. " \u041F\u0440\u0438 ": " \u041F\u0440\u0438\u00A0",
  420. " \u041E ": " \u041E\u00A0",
  421. " \u041E\u0442 ": " \u041E\u0442\u00A0",
  422. " \u0420\u0430\u0437 ": " \u0420\u0430\u0437\u00A0",
  423. " \u0421 ": " \u0421\u00A0",
  424. " \u0422\u0430\u043A ": " \u0422\u0430\u043A\u00A0",
  425. " \u0422\u043E ": " \u0422\u043E\u00A0",
  426. " \u0422\u0443\u0442 ": " \u0422\u0443\u0442\u00A0",
  427. " \u0423 ": " \u0423\u00A0",
  428. " \u0427\u0435\u043C ": " \u0427\u0435\u043C\u00A0",
  429. " \u0427\u0442\u043E ": " \u0427\u0442\u043E\u00A0"
  430. */
  431. }
  432. },
  433. paragraphStyles: [
  434. {
  435. name: "default",
  436. fontFamily: "sansSerif",
  437. color: "0x000000",
  438. strokeWidth: "0.0",
  439. characterSpacing: "0.0",
  440. horizontalScaling:"1.0",
  441. inlineImageZoom: "1.0",
  442. inlineImageOffsetY: "0.0",
  443. fontSize: "9.0pt"//"11.0pt"
  444. },
  445. {
  446. comment: "Front matter style: authors, publishers, uuid, creator tool",
  447. name: "frontMatter",
  448. baseStyle: "default",
  449. fontSize: "7.0pt"
  450. },
  451. {
  452. name: "title",
  453. baseStyle: "default",
  454. fontStyle: "bold",
  455. fontSize: "14.0pt",//"16.0pt",
  456. alignment: "center"
  457. },
  458. {
  459. name: "subtitle",
  460. baseStyle: "default",
  461. fontSize: "10.0pt",//"12.0pt",
  462. alignment: "center"
  463. },
  464. {
  465. name: "author",
  466. baseStyle: "default",
  467. fontSize: "12.0pt",//"14.0pt",
  468. alignment: "center"
  469. },
  470. {
  471. name: "tocTitle",
  472. baseStyle: "default",
  473. fontSize: "14.0pt",//"16.0pt",
  474. alignment: "center",
  475. spacingAfter: "1em",
  476. text: "\u0421\u043E\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435"
  477. },
  478. {
  479. name: "tocItem",
  480. baseStyle: "default",
  481. fontSize: "10.0pt",//"12.0pt",
  482. fontStyle: "bold",
  483. leftIndent: "2.0em",
  484. firstLineIndent: "-2.0em"
  485. },
  486. {
  487. name: "annotation",
  488. baseStyle: "default",
  489. fontFamily: "serif",
  490. fontSize: "9.0pt",
  491. alignment: "justified",
  492. firstSpacingBefore: "0.3em",
  493. spacingAfter: "0.3em"
  494. },
  495. {
  496. name: "annotationSubtitle",
  497. baseStyle: "annotation",
  498. fontFamily: "sansSerif",
  499. fontStyle: "bold",
  500. alignment: "center",
  501. spacingBefore: "0.3em",
  502. spacingAfter: "0.3em"
  503. },
  504. {
  505. name: "bodyTitle",
  506. baseStyle: "default",
  507. fontSize: "14.0pt",//"16.0pt",
  508. fontStyle: "bold",
  509. alignment: "center",
  510. lastSpacingAfter: "0.6em",
  511. disableHyphenation: "true"
  512. },
  513. {
  514. name: "sectionTitle",
  515. baseStyle: "default",
  516. fontSize: "14.0pt",//"16.0pt",
  517. fontStyle: "bold",
  518. alignment: "center",
  519. lastSpacingAfter: "0.6em",
  520. disableHyphenation: "true"
  521. },
  522. {
  523. name: "subSectionTitle",
  524. baseStyle: "default",
  525. fontSize: "12.0pt",//"14.0pt",
  526. fontStyle: "bold",
  527. alignment: "center",
  528. spacingBefore: "0.6em",//"0.3em",
  529. firstSpacingBefore: "0.6em",
  530. lastSpacingAfter: "0.6em",
  531. disableHyphenation: "true"
  532. },
  533. {
  534. name: "subSubSectionTitle",
  535. baseStyle: "default",
  536. fontSize: "12.0pt",//"12.0pt",
  537. fontStyle: "bold",
  538. alignment: "center",
  539. disableHyphenation: "true"
  540. },
  541. {
  542. name: "poem",
  543. baseStyle: "default",
  544. fontFamily: "serif",
  545. fontSize: "9.3pt",//"11.0pt",
  546. fontStyle: "italic",
  547. leftIndent: "5.0em",
  548. firstLineIndent: "0em",
  549. firstFirstLineIndent: "0em",
  550. firstSpacingBefore: "0.5em",
  551. lastSpacingAfter: "0.5em"
  552. },
  553. /*
  554. {
  555. name: "poemAuthor",
  556. selector: "//poem/text-author"
  557. },
  558. */
  559. /*
  560. {
  561. name: "poemTitle",
  562. selector: "//poem/title"
  563. },
  564. */
  565. /*
  566. {
  567. name: "poemDate",
  568. selector: "//poem/date"
  569. },
  570. */
  571. {
  572. name: "epigraph",
  573. baseStyle: "default",
  574. fontFamily: "serif",
  575. fontSize: "9.3pt",//"11.0pt",
  576. fontStyle: "italic",
  577. leftIndent: "2.5em",
  578. firstSpacingBefore: "0.5em",
  579. lastSpacingAfter: "0.5em"
  580. },
  581. /*
  582. {
  583. name: "epigraphAuthor",
  584. selector: "//epigraph/text-author"
  585. },
  586. */
  587. {
  588. name: "cite",
  589. baseStyle: "epigraph"
  590. },
  591. {
  592. name: "citeSubtitle",
  593. selector: "//cite/subtitle",
  594. fontStyle: "boldItalic"
  595. },
  596. /*
  597. {
  598. name: "citeAuthor",
  599. selector: "//cite/text-author"
  600. },
  601. */
  602. {
  603. name: "body",
  604. baseStyle: "default",
  605. fontFamily: "serif",
  606. fontSize: "9.6pt",//"10.5pt", mydost "9.3pt", mom "11.3"
  607. alignment: "justified",
  608. firstLineIndent: "1.5em",
  609. leading: "1.35em",//есть оптимальная пропорция с fontSize,"1.2em"
  610. firstFirstLineIndent: "1.5em",//"0em",
  611. dropcapStyle: ""//"bodyDropCap"
  612. },
  613. {
  614. name: "header",
  615. baseStyle: "default",
  616. fontFamily: "serif",
  617. fontSize: "8pt",
  618. fontStyle: "italic",
  619. spacingAfter: "3pt",
  620. spacingBefore: "0pt",
  621. leftIndent: "3pt",
  622. rightIndent: "3pt"
  623. },
  624. {
  625. name: "headerLeft",
  626. baseStyle: "header",
  627. alignment: "left"
  628. },
  629. {
  630. name: "headerRight",
  631. baseStyle: "header",
  632. alignment: "right"
  633. },
  634. {
  635. name: "code",
  636. selector: "//code",
  637. fontFamily: "monospaced"
  638. },
  639. {
  640. name: "codeParagraph",
  641. selector: "//p[code and count(*) = 1 and empty(text())]",
  642. baseStyle: "body",
  643. fontFamily: "monospaced",
  644. fontSize: "6.0pt",
  645. alignment: "left",
  646. disableHyphenation: "true",
  647. preserveWhitespaces: "true",
  648. dropcapStyle: ""
  649. },
  650. /*
  651. {
  652. name: "anchor",
  653. selector: "//a[@type='note']",
  654. fontFamily: "sansSerif"
  655. },
  656. */
  657. {
  658. name: "table",
  659. baseStyle: "body",
  660. leftIndent: "0.5em",
  661. rightIndent: "0.5em",
  662. spacingBefore: "0.5em",
  663. spacingAfter: "0.5em"
  664. },
  665. {
  666. name: "tableTD",
  667. baseStyle: "body"
  668. },
  669. {
  670. name: "tableTH",
  671. baseStyle: "body",
  672. fontStyle: "bold"
  673. },
  674. {
  675. name: "footnote",
  676. baseStyle: "default",
  677. fontFamily: "sansSerif",
  678. fontSize: "7.0pt",//"7.5pt",
  679. alignment: "justified",
  680. firstFirstLineIndent: "0pt",
  681. firstLineIndent: "1em",
  682. leading: "1.1em",
  683. dropcapStyle: ""
  684. },
  685. {
  686. name: "bodyDropCap",
  687. baseStyle: "default",
  688. enabled: "true",
  689. fontFamily: "serif",
  690. fontSize: "26.0pt",
  691. fontStyle: "regular",
  692. spacingBefore: "6.6pt",
  693. spacingAfter: "1.0pt"
  694. },
  695. {
  696. name: "bodySubtitle",
  697. baseStyle: "default",
  698. fontFamily: "sansSerif",
  699. fontSize: "11.0pt",//"13.0pt",
  700. fontStyle: "bold",
  701. alignment: "center",
  702. spacingBefore: "0.3em",
  703. spacingAfter: "0.3em",
  704. firstSpacingBefore: "0.2em" //no in default
  705. }
  706. ]
  707. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement