Mentions légales du service

Skip to content
Snippets Groups Projects

WIP: Vertical transcription layout

Closed Robin Tissot requested to merge vertical-transcription-layout into develop
2 unresolved threads

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
165 166 )
166 167 READ_DIRECTION_LTR = 'ltr'
167 168 READ_DIRECTION_RTL = 'rtl'
169 READ_DIRECTION_VRL = 'vrl'
  • Author Maintainer

    The read direction dictates the order of pages (and some html elements) not the lines, so I don't think it should be used at all in this PR? Tell me if I'm missing something.

  • Thank you Robin, Maybe I am confusing some variables (certainly between READ_DIRECTION and TEXT_DIRECTION). I made this first step like this because :

    • it appears that choices available in the document edition (selection list) is linked to READ_DIRECTION and this is apparently this one that detmermine html elements for segment edition
    • also, we are in a configuration where our script does not exist in main script selection, and I did not find how to link everything with the TEXT_DIRECTION without this choice being made
  • Please register or sign in to reply
  • 299 334
    300 let top = -(bbox.top*ratio - context);
    301 let left = -(bbox.left*ratio - context);
    335 if(this.$store.state.document.readDirection == "vrl"){
    336
    337 let modalBodyVrl = this.$el.querySelector('#modal-body-vrl');
    338 let MAX_WIDTH = modalBodyVrl.clientWidth * 0.4;
    339
    340 if(String(bbox.width * ratio + context) > MAX_WIDTH){
    341 ratio = (MAX_WIDTH / modalImgContainer.clientWidth) * ratio;
    342 modalImgContainer.style.width = MAX_WIDTH;
    343 }
    302 344
    303 // if text direction is rtl and the line doesn't take all the space,
    304 // align it to the right
    305 if (modalImgContainer.clientWidth - 2*context > bbox.width*ratio
  • Olivier Masson added 1 commit

    added 1 commit

    • 978bc482 - add class .readvrl corresponding to read direction to avoid conflicts with text direction variable

    Compare with previous version

  • Olivier Masson added 1 commit

    added 1 commit

    Compare with previous version

  • Olivier Masson added 1 commit

    added 1 commit

    • 7452b087 - add a new read direction model and the choice in document edition

    Compare with previous version

  • Olivier Masson added 1 commit

    added 1 commit

    • d8d6cc23 - change glyphs svgs angle for vertical writting and fix a font-size

    Compare with previous version

  • Olivier Masson added 1 commit

    added 1 commit

    • 46b17e31 - manage navigation with vertical writing

    Compare with previous version

  • Olivier Masson added 1 commit

    added 1 commit

    • 3b6326db - does many things to allow vertical writing input

    Compare with previous version

  • Olivier Masson added 1 commit

    added 1 commit

    • 4d7c2eed - does many things to allow vertical writing input in segment editing

    Compare with previous version

  • Please register or sign in to reply
    Loading