xref.c

来自「HTML-XML-utils由一套小型C程序(过滤器)组成」· C语言 代码 · 共 20 行

C
20
字号
/* * Program to (semi-)automatically link instances of terms and phrases * in an HTML file to their definitions. * * The program collects all <dfn> elements, and stores either their * title attribute, or if there is none, their content (without * mark-up). Then it looks for occurrences of the same text and makes * a link from the occurrence to the corresponding <dfn> element. The * occurrences that are checked are the contents of all inline * elements, such as <em> and <span>. HTML unfortunately forbids * nested links, so the program doesn't look for occurrences inside an * <a>. * * The program can store the <dfn> elements (the terms they define, * the file they occur in and their ID) in a file, so that * cross-references among several files are possible, by running the * program on each of the files. It may be necessary to run the * program twice on a series of files, to create all the references. * * Copyright 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?