VirtualBox

source: vbox/trunk/src/libs/dita-ot-1.8.5/doc/dev_ref/extended-functionality.html@ 98878

最後變更 在這個檔案從98878是 98584,由 vboxsync 提交於 2 年 前

Docs: bugref:10302. Setting svn properties of DITA-OT library.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 3.1 KB
 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE html
3 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4<html xml:lang="en-us" lang="en-us">
5<head>
6<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7<meta name="copyright" content="(C) Copyright 2005"/>
8<meta name="DC.rights.owner" content="(C) Copyright 2005"/>
9<meta name="DC.Type" content="reference"/>
10<meta name="DC.Title" content="Extended functionality"/>
11<meta name="DC.Relation" scheme="URI" content="../dev_ref/developer-reference.html"/>
12<meta name="DC.Format" content="XHTML"/>
13<meta name="DC.Identifier" content="extended-functionality"/>
14<link rel="stylesheet" type="text/css" href="../commonltr.css"/>
15<link rel="stylesheet" type="text/css" href="../dita-ot-doc.css"/>
16<title>Extended functionality</title>
17</head>
18<body id="extended-functionality">
19
20
21 <h1 class="title topictitle1">Extended functionality</h1>
22
23 <div class="related-links">
24<div class="familylinks">
25<div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../dev_ref/developer-reference.html" title="The DITA Open Toolkit Developer Reference is designed to provide more advanced information about the DITA OT. It is geared to an audience that needs information about the DITA-OT architecture, configuring and extending the DITA-OT, and creating DITA-OT plug-ins.">DITA Open Toolkit Developer Reference</a></div>
26</div>
27</div>
28<div class="topic reference nested1" id="code-reference">
29 <h2 class="title topictitle2">Code reference processing</h2>
30
31 <div class="body refbody">
32 <div class="section"><h3 class="title sectiontitle">Charset definition</h3>
33
34 <p class="p">DITA-OT supports defining the code reference target file encoding using the
35 <samp class="ph codeph">format</samp> attribute. The supported format is:</p>
36
37 <pre class="pre codeblock">format (";" space* "charset=" charset)?</pre>
38
39 <p class="p">If charset is not defined system default charset will be used. If charset is not
40 recognized or supported, <span class="keyword">DOTJ052E</span> error is thrown and system default
41 charset is used as a fall-back.</p>
42
43 </div>
44
45 <div class="example">
46 <pre class="pre codeblock">&lt;coderef href="unicode.txt" format="txt; charset=UTF-8"/&gt;</pre>
47
48 </div>
49
50 <div class="section"><h3 class="title sectiontitle">Line range extraction</h3>
51
52 <p class="p">Code reference can extract only a given line ranges with <samp class="ph codeph">line-range</samp>
53 pointer in the URI fragment. The format is:</p>
54
55 <pre class="pre codeblock">uri ("#line-range(" start ("," end)? ")" )?</pre>
56
57 <p class="p">Start and end line numbers start from 1 and are inclusive. If end range
58 is omitted, range ends in last line of the file.</p>
59
60 </div>
61
62 <div class="example">
63 <pre class="pre codeblock">&lt;coderef href="Parser.scala#line-range(5, 10)" format="scala"/&gt;</pre>
64
65 <p class="p">Only lines from 5 to 10 will be included in the output.</p>
66
67 </div>
68
69 </div>
70
71 </div>
72
73
74</body>
75</html>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette