Lines Matching refs:file
78 """Print Khronos CC-BY copyright notice on open file fp.
81 file."""
82 print('// Copyright 2014-2024 The Khronos Group Inc.', file=fp)
83 print('//', file=fp)
85 print('// SPDX' + '-License-Identifier: CC-BY-4.0', file=fp)
86 print('', file=fp)
90 """Print footer material at the end of each refpage on open file fp.
112 sep='\n', file=fp)
206 # Relative path to include file from here
227 - fp - file to write to
240 sep='\n', file=fp)
247 sep='\n', file=fp)
255 sep='\n', file=fp)
260 sep='\n', file=fp)
268 sep='\n', file=fp)
273 sep='\n', file=fp)
287 - fp - file to write to"""
321 - fp - file to write the page to
362 sep='\n', file=fp)
368 sep='\n', file=fp)
421 def emitPage(baseDir, specDir, pi, file):
426 - pi - pageInfo for this page relative to file
427 - file - list of strings making up the file, indexed by pi"""
454 lines = remapIncludes(file[pi.begin:remap_end], baseDir, specDir)
465 lines = remapIncludes(file[pi.param:pi.body], baseDir, specDir)
470 lines = remapIncludes(file[pi.body:pi.end + 1], baseDir, specDir)
479 descText = ''.join(file[pi.begin:pi.end + 1])
507 def autoGenEnumsPage(baseDir, pi, file):
513 - pi - pageInfo for this page relative to file
514 - file - list of strings making up the file, indexed by pi"""
545 ''.join(file[pi.begin:pi.include + 1]),
657 """Extract reference pages from a spec asciidoc source file.
662 file, _ = loadFile(specFile)
663 if file is None:
666 # Save the path to this file for later use in rewriting relative includes
669 pageMap = findRefs(file, specFile)
675 fixupRefs(pageMap, specFile, file)
705 printPageInfo(pi, file)
711 emitPage(baseDir, specDir, pi, file)
713 autoGenEnumsPage(baseDir, pi, file)
748 sep='\n', file=head)
750 print('== Copyright', file=head)
751 print('', file=head)
752 print('include::{config}/copyright-ccby' + conventions.file_suffix + '[]', file=head)
753 print('', file=head)
781 sep='\n', file=body)
804 print(f'include::{refPage}{conventions.file_suffix}[]', file=body)
812 print('\n' + ':leveloffset: 0' + '\n', file=body)
814 # Write head and body to the output file
818 print(head.getvalue(), file=fp, end='')
819 print(body.getvalue(), file=fp, end='')
938 help='Set the diagnostic file')
940 help='Set the warning file')
942 help='Set the log file for both diagnostics and warnings')
959 help='Name of output file to write Apache mod_rewrite directives to')
962 help='Name of output file to write an alphabetical TOC to')
965 help='Use specified registry file instead of default')
991 for file in results.files:
992 d = genRef(file, baseDir)
1075 sep='', file=fp)
1083 print(12 * ' ', '<li class="Level1">Alphabetic Contents', sep='', file=fp)
1084 print(16 * ' ', '<ul class="Level2">', sep='', file=fp)
1094 print(24 * ' ', '</ul>', sep='', file=fp)
1095 print(20 * ' ', '</li>', sep='', file=fp)
1097 print(20 * ' ', '<li>', letter, sep='', file=fp)
1098 print(24 * ' ', '<ul class="Level3">', sep='', file=fp)
1104 sep='', file=fp)
1108 print(24 * ' ', '</ul>', sep='', file=fp)
1109 print(20 * ' ', '</li>', sep='', file=fp)
1112 print(16 * ' ', '</ul>', sep='', file=fp)
1113 print(12 * ' ', '</li>', sep='', file=fp)