summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2000-10-26 00:06:35 +0000
committerDavid Turner <david@freetype.org>2000-10-26 00:06:35 +0000
commit54169b35f8ba994ba4cb9d46c75fdde78c8c0cc3 (patch)
tree8ac192403637da65875f1eb133506e4c712888d2 /docs
parent4cd68a09c52289fd27ca556e7d83055b51c3f295 (diff)
- reviving the "ftbbox" component, used to compute exact bounding
box computations - minor update to docmaker.py, more is coming
Diffstat (limited to 'docs')
-rw-r--r--docs/docmaker.py46
1 files changed, 44 insertions, 2 deletions
diff --git a/docs/docmaker.py b/docs/docmaker.py
index b71d81f0..aa1ba84f 100644
--- a/docs/docmaker.py
+++ b/docs/docmaker.py
@@ -3,6 +3,10 @@
# DocMaker is a very simple program used to generate HTML documentation
# from the source files of the FreeType packages.
#
+# I should really be using regular expressions to do this, but hey,
+# i'm too lazy right now, and the damn thing seems to work :-)
+# - David
+#
import fileinput, sys, string
@@ -110,6 +114,34 @@ source_footer = """</pre></table>
# instead of "<MAKRER>". All marker identifiers are converted to
# lower case during parsing, in order to simply sorting..
#
+# We associate with each block the following source lines that do not
+# begin with a comment. For example, the following:
+#
+# /**********************************
+# *
+# * <mytag> blabla
+# *
+# */
+#
+# bla_bla_bla
+# bilip_bilip
+#
+# /* - this comment acts as a separator - */
+#
+# blo_blo_blo
+#
+#
+# will only keep the first two lines of sources with
+# the "blabla" block
+#
+# However, the comment will be kept, with following source lines
+# if it contains a starting '#' or '@' as in:
+#
+# /*@.....*/
+# /*#.....*/
+# /* @.....*/
+# /* #.....*/
+#
def make_block_list():
@@ -146,9 +178,19 @@ def make_block_list():
# if this line begins with a comment and we are processing some
# source, exit to state 0
#
+ # unless we encounter something like:
+ #
+ # /*@.....
+ # /*#.....
+ #
+ # /* @.....
+ # /* #.....
+ #
if format >= 4 and l > 2 and line2[0 : 2] == '/*':
- list.append( ( block, source ) )
- format = 0
+ if l < 4 or ( line2[3] != '@' and line2[3:4] != ' @' and
+ line2[3] != '#' and line2[3:4] != ' #'):
+ list.append( ( block, source ) )
+ format = 0
if format == 0: #### wait for beginning of comment ####