Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Vertical Monitor + terminal locale (mod 1.0.80)
#1
--- 13 ---
                           
    Added a vertical monitor orientation mode.
      Parameter in the file ventoy.json:
*********************************************************************

*  "theme": {
*      ...
*      "theme_rotate90": "/ventoy/themes/Vertical_Monitor/vertical.txt",
*      "text_direction": "2",
*      "font_rotate90": ["/ISO/fonts/rotate_10b.pf2"],
*      ...
*  },
*********************************************************************
 
        Description:
        theme for vertical mode
        "theme_rotate90": "/ventoy/themes/Vertical_Monitor/vertical.txt"
       
        "text_direction": "2" - vertical mode activation - Ventoy is loaded with the vertical orientation of the screen
        "text_direction": "1" - horizontal orientation of the screen
        if the "text_direction" key is not set, the horizontal orientation of the screen is
       
        font for vertical mode
        "font_rotate90": ["/ISO/fonts/rotate_10b.pf2"]
       
        theme "/Vertical_Monitor/vertical.txt " and 3 fonts "rotate_8.pf2", "rotate_10b.pf2", "rotate_12.pf2"
        (with Latin and Cyrillic) added to ventoy-mod_1.0.80...see paragraph 12
       
       
        added a "hot" button "Ctrl" + "l" to change the orientation of the screen after loading Ventoy,
        under the conditions:
    a) the "text_direction" key is set to "1" or "2"
    b) the vertical theme key "theme_rotate90" is set
    c) the horizontal theme key "file" is set
   
 
 
   
                            --- 14 ---
 
 
 
    Changed the "lsfonts" command. Now it outputs in the form
    path and file name -> font name (which should be written for the theme components if we want to highlight them)   
   
   
    For example, we want to make a bigger inscription:
    "h:help F1: Memdisk  F2: Power F3: ListView F4: Localboot F5: Tools F6: download-Kubuntu F9: info"
   
                           
а) we look through the fonts (they are now displayed as menu items) and select the one we like.
b) Go to the terminal and type the command
            grub>lsfonts
    and we look at the system's response. Usually the last viewed font is at the very top of the list. Let it be so:
            (hd0,1)/ISO/fonts/fixedsys-regular-32.pf2  ->  Fixedsys Excelsior 3.01 Regular 32
            ...
c) adding a font to the name_of_your_theme.txt
*********************************************************************

*  + hbox{
*      ...
*      + label {text = "@VTOY_HOTKEY_TIP@" color = "#eeeef8" font = "Fixedsys Excelsior 3.01 Regular 32" align = "left"}
*  }
*********************************************************************
 
d) adding the font to
          Parameter in the file ventoy.json:
*********************************************************************

*  "theme": {
*      ...
*      "fonts": ["/ISO/fonts/fixedsys-regular-32.pf2",...
*      ...
*  },
*********************************************************************
   
   
The example given in "/ventoy/themes/Arch-Blue/theme.txt".


   
                            --- 15 ---
                           
Downloaded localization files *.mo from the Internet (column 3). I assumed which language
it would correspond to (column 2). And as the value of the key "VTOY_locale_LANGUAGE" (1 column).
If I made a mistake somewhere, I apologize for my ignorance. There are also several languages that I don't know
what the correct value is to set. For example:
pa.mo . These are: "pa_Arab" or "pa_Guru" or "pa_IN" or "pa_PK" or ... ?
I would be grateful if you could tell me. And I will make changes in the next release.
You can also send your localization files for inclusion in Ventoy.

/*
* ast  - Asturian (Spain) - ast.mo
* ca    - Catalan - ca.mo
* da_DK - Danish - da.mo
* de_DE - German - de.mo
* en_GB - English - en.mo
* es    - spanish - es.mo
* fi_FI - Finnish - fi.mo
* fr_FR - French - fr.mo
* gl_ES - Galician - gl.mo
* hr_HR - Croatian - hr.mo
* hu_HU - Hungarian - hu.mo
* id_ID - Indonesian - id.mo
* it_IT - Italian - it.mo
* ko_KR - Korean - ko.mo
* lg_UG - ganda - lg.mo
* lt_LT - Lithuanian - lt.mo
* nb_NO - Norwegian Bookmole - nb.mo
* nl_NL - Dutch - nl.mo
* pa    - punjabi - pa.mo
* pl_PL - polish - pl.mo
* pt_PT - Portuguese - pt.mo
* pt_BR - Portuguese (Brazil) - pt_BR.mo
* ro    - Romanian - ro.mo
* ru_RU - Russian - ru.mo
* sl_SI - Slovenian - sl.mo
* sr    - Serbian - sr.mo
* sv_SE - Swedish - sv.mo
* tr_TR - Turkish - tr.mo
* uk_UA - Ukrainian - uk.mo
* vi_VN - Vietnamese - vi.mo
* zh_CN - Chinese (China) - zh_CN.mo
* zh_TW - Chinese (Taiwan) - zh_TW.mo
*/




    Added a locale for the terminal. Selection from the list:
ast, ca, da_DK, de_DE, en_GB , es, fi_FI, fr_FR, gl_ES, hr_HR, hu_HU, id_ID, it_IT, ko_KR, lg_UG, lt_LT, nb_NO, nl_NL, pa,
pl_PL, pt_PT, pt_BR, ro, ru_RU, sl_SI, sr, sv_SE, tr_TR, uk_UA, vi_VN, zh_CN, zh_TW
   
    Set in
          Parameter in the file ventoy.json:
*********************************************************************

*  "control": [
*      ...
*      "{ "VTOY_locale_LANGUAGE": "ru_RU"},
*      ...
*  ],
*********************************************************************



P.S.
I wrote a reference on mod_ventoy - unpack the archive ventoy-mod_1.0.80-linux.tar.gz или ventoy-mod_1.0.80-windows.zip:
/ventoy-mod_1.0.80/plugin/ventoy/help.txt - in russian language.
/ventoy-mod_1.0.80/Difference_from_the_original_version.txt - in english (translate.google) language.

Video of the work of changing screen orientations using the "hot" button "Ctrl" + "l", starting immediately in vertical mode
, see the link rotate.mp4.
download mod: ventoy-mod_1.0.80-linux.tar.gz  ventoy-mod_1.0.80-livecd.iso  ventoy-mod_1.0.80-windows.zip
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)