Changeset 629:e36bf3226fde in documentViewer


Ignore:
Timestamp:
May 26, 2015, 8:58:27 AM (10 years ago)
Author:
dwinter
Branch:
default
Children:
630:25295ceb11b1, 631:0c3aab828864
Message:

text image viewer eingecheckt

Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • css/docuviewer.css

    r615 r629  
    7575    vertical-align: top;
    7676}
     77
     78
     79
     80/*
     81* two colomn stype for image - text
     82*/
     83div.two-column {
     84        display: table;
     85}
     86
     87div.two-column-row {
     88        display: table-row;
     89}
     90
     91div.two-column-left {
     92        display: table-cell;
     93        vertical-align: top;
     94}
     95
     96div.two-column-right {
     97        display: table-cell;
     98        vertical-align: top;
     99}
     100
     101
    77102
    78103/*
  • documentViewer.py

    r626 r629  
    9696    viewer_thumbs = PageTemplateFile('zpt/viewer/viewer_thumbs', globals())
    9797    viewer_indexonly = PageTemplateFile('zpt/viewer/viewer_indexonly', globals())
     98    viewer_text_image = PageTemplateFile('zpt/viewer/viewer_text_image', globals())
    9899    # available layer types (annotator not default)
    99100    builtinLayers = {'text': ['dict','search','gis'],
    100                      'xml': None, 'image': None, 'index': ['extended']}
     101                     'xml': None, 'image': None, 'index': ['extended'],'text_image': ['dict'],}
    101102    availableLayers = builtinLayers;
    102103    # layer templates
    103104    layer_text_dict = PageTemplateFile('zpt/viewer/layer_text_dict', globals())
     105    layer_text_image_dict = PageTemplateFile('zpt/viewer/layer_text_image_dict', globals())
    104106    layer_text_search = PageTemplateFile('zpt/viewer/layer_text_search', globals())
    105107    layer_text_annotator = PageTemplateFile('zpt/viewer/layer_text_annotator', globals())
     
    977979        pageinfo['pageBatch'] = self.getPageBatch(start=start, rows=rows, cols=cols, pageFlowLtr=pageFlowLtr, pageZero=pageZero, minIdx=minPageNo, maxIdx=np)
    978980        # 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'
    980984        if docinfo.get('pageNumbers'):
    981985            # get original page numbers
  • zpt/viewer/common_template.zpt

    r609 r629  
    3131        <li tal:condition="docpath" tal:attributes="class python:here.getStyle(viewMode, 'text')"><a
    3232          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> 
    3335        <li tal:condition="python:docinfo.get('imagePath',None)" tal:attributes="class python:here.getStyle(viewMode, 'image')"><a
    3436          tal:omit-tag="python:viewMode=='image'" tal:attributes="href python:here.getLink('viewMode','image')">Image</a></li>
  • zpt/viewer/viewer_text.zpt

    r594 r629  
    109109          <h4>Text normalization</h4>
    110110          <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');">
    112112            <input type="hidden"
    113113              tal:define="params python:here.getParams(params={'characterNormalization':None, 'viewLayer':viewLayer})"
     
    116116              <li><input type="radio" class="autosubmit" name="characterNormalization" value="orig"
    117117                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"
    119119                tal:attributes="checked python:norm=='reg'" /> Regularized</li>
    120120              <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>-->
    122122            </ul>
    123123            <input type="submit" value="Go!" />
Note: See TracChangeset for help on using the changeset viewer.