WIP: Vertical transcription layout
2 unresolved threads
2 unresolved threads
Merge request reports
Activity
165 166 ) 166 167 READ_DIRECTION_LTR = 'ltr' 167 168 READ_DIRECTION_RTL = 'rtl' 169 READ_DIRECTION_VRL = 'vrl' 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
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 changed this line in version 7 of the diff
added 1 commit
- 978bc482 - add class .readvrl corresponding to read direction to avoid conflicts with text direction variable
added 1 commit
- 7452b087 - add a new read direction model and the choice in document edition
added 1 commit
- d8d6cc23 - change glyphs svgs angle for vertical writting and fix a font-size
added 1 commit
- 3b6326db - does many things to allow vertical writing input
added 1 commit
- 4d7c2eed - does many things to allow vertical writing input in segment editing
Please register or sign in to reply