-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.t2tconf
25 lines (21 loc) · 1008 Bytes
/
global.t2tconf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
%!Target: html
%!Encoding: UTF-8
% Remove the Table of Contents heading from the toc.
%!PostProc(html): '^.*\<LI\>\<A HREF="#toc"\>.*\</A\>.*$' ''
% h1 in html should really be the document title only.
% Therefore, change h1 through h5 in the output to h2 through h6.
%!PostProc(html): ^<H5>(.*)</H5>$ <H6>\1</H6>
%!PostProc(html): ^<H4>(.*)</H4>$ <H5>\1</H5>
%!PostProc(html): ^<H3>(.*)</H3>$ <H4>\1</H4>
%!PostProc(html): ^<H2>(.*)</H2>$ <H3>\1</H3>
%!PostProc(html): ^<H1>(.*)</H1>$ <H2>\1</H2>
% Some of our files contain the UTF-8 BOM.
% txt2tags doesn't care about encodings internally,
% so it will just include the BOM at the start of the title.
% Therefore, strip the BOM from the title.
%!PostProc(html): \<(TITLE|H1)\>\xef\xbb\xbf <\1>
% Language neutral defines
% We need to do this one as PostProc so it gets converted for the title.
%!PostProc: NVDA_VERSION 2018.3-dev
%!PreProc: NVDA_URL https://github.com/nvaccess/nvda/
%!PreProc: NVDA_COPYRIGHT_YEARS 2006-2018