Changeset 629:e36bf3226fde in documentViewer
- Timestamp:
- May 26, 2015, 8:58:27 AM (10 years ago)
- Branch:
- default
- Children:
- 630:25295ceb11b1, 631:0c3aab828864
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
css/docuviewer.css
r615 r629 75 75 vertical-align: top; 76 76 } 77 78 79 80 /* 81 * two colomn stype for image - text 82 */ 83 div.two-column { 84 display: table; 85 } 86 87 div.two-column-row { 88 display: table-row; 89 } 90 91 div.two-column-left { 92 display: table-cell; 93 vertical-align: top; 94 } 95 96 div.two-column-right { 97 display: table-cell; 98 vertical-align: top; 99 } 100 101 77 102 78 103 /* -
documentViewer.py
r626 r629 96 96 viewer_thumbs = PageTemplateFile('zpt/viewer/viewer_thumbs', globals()) 97 97 viewer_indexonly = PageTemplateFile('zpt/viewer/viewer_indexonly', globals()) 98 viewer_text_image = PageTemplateFile('zpt/viewer/viewer_text_image', globals()) 98 99 # available layer types (annotator not default) 99 100 builtinLayers = {'text': ['dict','search','gis'], 100 'xml': None, 'image': None, 'index': ['extended'] }101 'xml': None, 'image': None, 'index': ['extended'],'text_image': ['dict'],} 101 102 availableLayers = builtinLayers; 102 103 # layer templates 103 104 layer_text_dict = PageTemplateFile('zpt/viewer/layer_text_dict', globals()) 105 layer_text_image_dict = PageTemplateFile('zpt/viewer/layer_text_image_dict', globals()) 104 106 layer_text_search = PageTemplateFile('zpt/viewer/layer_text_search', globals()) 105 107 layer_text_annotator = PageTemplateFile('zpt/viewer/layer_text_annotator', globals()) … … 977 979 pageinfo['pageBatch'] = self.getPageBatch(start=start, rows=rows, cols=cols, pageFlowLtr=pageFlowLtr, pageZero=pageZero, minIdx=minPageNo, maxIdx=np) 978 980 # more page parameters 979 pageinfo['characterNormalization'] = self.REQUEST.get('characterNormalization','reg') 981 #pageinfo['characterNormalization'] = self.REQUEST.get('characterNormalization','reg') 982 #becuase it is buggy this currently disabled and set to orig. 983 pageinfo['characterNormalization'] = 'orig' 980 984 if docinfo.get('pageNumbers'): 981 985 # get original page numbers -
zpt/viewer/common_template.zpt
r609 r629 31 31 <li tal:condition="docpath" tal:attributes="class python:here.getStyle(viewMode, 'text')"><a 32 32 tal:omit-tag="python:viewMode=='text'" tal:attributes="href python:here.getLink('viewMode','text')">Text</a></li> 33 <li tal:condition="docpath" tal:attributes="class python:here.getStyle(viewMode, 'text')"><a 34 tal:omit-tag="python:viewMode=='text_image'" tal:attributes="href python:here.getLink('viewMode','text_image')">Text Image</a></li> 33 35 <li tal:condition="python:docinfo.get('imagePath',None)" tal:attributes="class python:here.getStyle(viewMode, 'image')"><a 34 36 tal:omit-tag="python:viewMode=='image'" tal:attributes="href python:here.getLink('viewMode','image')">Image</a></li> -
zpt/viewer/viewer_text.zpt
r594 r629 109 109 <h4>Text normalization</h4> 110 110 <form tal:attributes="action viewerUrl" class="autosubmit" 111 tal:define="norm python:pageinfo.get('characterNormalization',' regPlusNorm');">111 tal:define="norm python:pageinfo.get('characterNormalization','orig');"> 112 112 <input type="hidden" 113 113 tal:define="params python:here.getParams(params={'characterNormalization':None, 'viewLayer':viewLayer})" … … 116 116 <li><input type="radio" class="autosubmit" name="characterNormalization" value="orig" 117 117 tal:attributes="checked python:norm=='orig'" /> Original</li> 118 < li><input type="radio" class="autosubmit" name="characterNormalization" value="reg"118 <!--<li><input type="radio" class="autosubmit" name="characterNormalization" value="reg" 119 119 tal:attributes="checked python:norm=='reg'" /> Regularized</li> 120 120 <li><input type="radio" class="autosubmit" name="characterNormalization" value="regPlusNorm" 121 tal:attributes="checked python:norm=='regPlusNorm'" /> Normalized</li> 121 tal:attributes="checked python:norm=='regPlusNorm'" /> Normalized</li>--> 122 122 </ul> 123 123 <input type="submit" value="Go!" />
Note: See TracChangeset
for help on using the changeset viewer.