Unexpected-Keyboard icon indicating copy to clipboard operation
Unexpected-Keyboard copied to clipboard

Direct values (or larger min/max) for font size & margins

Open CendaCZ opened this issue 6 months ago • 8 comments

Make size of letters inputtable (or more generous) instead of (or with) slider.

Why

After an app/system update the letter size decreased dramatically on some phones and system font/zoom is not/barely helping.

Dirrct input, combined solution or more generous min/max values could solve it.

(it's thr only note/issue I got from people in recent months)

Similarly the bottom offset margin the max value could be higher (usecase: hi-res/tab or travel grip)

Global max scale could also solve this issue instead of non-slider variants

CendaCZ avatar Jul 12 '25 00:07 CendaCZ

It seems the update also broke the relative sizing of keys (smaller/bigger now have the same size) Screenshot_2025-07-13-14-56-30-73_c483b0a08a3d13961f22556f3195da20.jpg

CendaCZ avatar Jul 13 '25 12:07 CendaCZ

Thanks for opening the issue. This might be related to 9ab09917 Can you post a full screenshot ?

Julow avatar Jul 13 '25 17:07 Julow

e.g. widescreen IMG_20250714_141243.jpg

IMG_20250714_141348.jpg

It's strange because before it didn't get in the way even on 1.15x (my default) zoom but now it's distracting on 1.15 and not readable for older people on 1.5x who use & praise it regularly.

picture on my old phone (not updated): Screenshot_20250715-104700_Dynalist.png

CendaCZ avatar Jul 14 '25 12:07 CendaCZ

I made a fix in https://github.com/Julow/Unexpected-Keyboard/pull/1046. Can you try the debug build at the end of this page ?

Julow avatar Jul 17 '25 20:07 Julow

I'm not against larger min/max values but I'd prefer to make the keyboard look good by default. If the above patch fixes the main bug, can you show what else you'd like to change ?

Julow avatar Jul 17 '25 20:07 Julow

Installed & Unfortunately I don't see the changes (settings values nor on keyboard) or it got worse. I understand that the new sizing may've benefited single-symbol keys (emoji/symbol) but there has to be a better solutíon – it worked well before.

IMG_20250718_115751.jpg

The only other thing was to change max value or if there's an option to type it alongside.

From what I've searched there seems to not really be a common library to have clickable (to type) slider entry/value but I may've found something with

override fun onBindViewHolder(holder: PreferenceViewHolder)

When I get to test it I'll let you know, but I'm beginner to java/kotlin android dev so it may take very long.

CendaCZ avatar Jul 18 '25 10:07 CendaCZ

I don't understand how the symbols in the first two rows get so large. Can you share how some of them are defined (eg. the #ext and the check mark ones) ?

The preferences are defined here: https://github.com/Julow/Unexpected-Keyboard/blob/master/res/xml/settings.xml The sliders are written here: https://github.com/Julow/Unexpected-Keyboard/blob/master/srcs/juloo.keyboard2/prefs/IntSlideBarPreference.java

Julow avatar Jul 19 '25 15:07 Julow

This is the layout (sorry for the wait):

<?xml version="1.0" encoding="utf-8"?>
<keyboard name="somelayout" script="latin" bottom_row="false">
<modmap>
<shift a="~" b="≈"/>
<shift a="=" b="≠"/>
<shift a="-" b="&lt;-&gt;"/>
<fn a="ó" b="ø"/>
<fn a="å" b="α"/>
<fn a="č" b="ç"/>
<shift a="@home" b="I'll let you know when I'll arive home."/>
<shift a="atHome" b="Kind regards,
"/>
</modmap>
<row height="0.5">
<!-- DYNA META -->
<key key0="" key1="" key2="Greetings,

I'm writing to" key3="" key4="atHome" />
<key key0="e.g." key1="site:" key2=" site:facebook.com site:ebay.com site:temu.com site:bazos.cz site:aukro.cz site:heureka.cz site:mall.cz" key3="" key4="" />
<key key0="#prompt" key1="#ask" key2="#promptclipto" key3="" key4="kb.io" />
<key key0="🎉" key1="MUSIC - " key3="LEI SWATCH - " key2="#zypresetai" key4="#zyai"/>
<key key0="#SCH" key1="" key2="" key3="" key4="" />
<key key0="#soon" key1="#impo" key2="" key3="" key4="" />
<key key0="@home" key3="" key4="" />
<key key0="(i)" key1="#ishould" key2="#dlg" key3="#itrain" key4="#iresedu"/>
<key key0="❤️" key1="If you can call me please do, prefferably until " key2="Teď nemohu, zavolej(te) později" key3=", nebo napiš(te)" key4="" />
</row>
<row height="0.6">
<key key0="🏢" key1="🚌" key2="🚅" key3="🚗" key4="✅" />
<key key0="#ext " />
<key key0="#quote " key2="#resdiss "/>
<key key0="" key1="" key2="" key3="" key4="" />
<key key0="" key1="" key2="" key4="" />
<key key0="#move " key1="#link sch "key2="Tr: " />
<key key0="💻" key1="site:makeuseof site:geeksforgeeks site:howtogeek" />
<key key0="#DO" key1="#TRY" key2="" key3="" key4="" />
<!--<key key0="#TODO" key1="#TRY" key2="#i" key3="#p" key4="#m" />-->
<key key0="🕛" key1="🔌"  key3="📍" key4="v kalendáři"/>
<key key0="📞 " key1="👨/📞 " key2="📨/💬 " key3="esc" />
</row>
<row height="0.9">
<key width="0.7" key0="q" key1="1" key4="esc" />
<key key0="w" key1="2" key3="~" />
<key key0="e" key1="3" key2="é" key3="ë" key4="ě" />
<key width="1.2" key0="r" key1="4" key2="ŕ" key3="" key4="ř" />
<key key0="t" key1="5" key3="°" key4="ť" />
<key key0="z" key1="6" key3="^" key4="ž" />
<key key0="u" key1="7" key2="ú" key3="ü" key4="ů" />
<key key0="i" key1="8" key2="í" key3="ï" key4="*" />
<key width="1.1" key0="o" key1="9" key2="ó" key3="ö" key4="ô" />
<key width="1.4" key0="p" key1="0" key2="=" key3="/" key4="§" />
<!--<key width="0.2" key0=""/>-->
</row>
<row height="1">
<key shift="0" width="1.2" key0="a" key1="tab" key2="á" key3="ä" key4="å" />
<key key0="s" key1="{" key2="&lt;" key3="$" key4="š" />
<key key0="d" key1="$" key2="δ" key3="°" key4="ď" />
<key key0="f" key1="}" key2=">" key3="ѳ" key4="φ" />
<key key0="g" key1="»" key2="«" key4="_" />
<key key0="h" key1="" key2="" key3="`" key4="🆗" />
<key key0="j" key1="+" key2="\?" key3="!" key4="-" />
<key width="2" key0="loc compose" key7="up" key6="right" key5="left" key8="down" key1="loc home" key2="loc page_up" key3="loc end" key4="loc page_down"/>
<key width="1.4" key0="backspace" key3="" key1="delete" />
</row>
<row height="0.9">
<key width="0.9" key0="shift" key2="loc capslock" />
<key width="0.8" key0="y" key2="ý" key3="÷" />
<key key0="x" key2="·" key3="×" key4="loc †" />
<key width="1.2" key0="c" key1="γ" key2="" key3="&amp;" key4="č" />
<key key0="v" key2="" key3="\@" key4="paste" />
<key key0="b" key1="♭" key2=";" key3=":" key4="β" />
<key key0="n" key1="∞" key2="," key3="." key4="ň" />

<key key0="k" key1="[" key2=")" key3="(" key4="]" />
<key width="1.1" key0="m" key1="%" key2="&quot;" key3="'" key4="\#" />
<key width="1.4" key0="shift" key1="switch_numeric" key2="" />
</row>
<row height="0.95">
  <key width="1.8" key0="ctrl" key1="loc switch_greekmath" key2="shift" key3="loc switch_clipboard" key4="switch_numeric"/>
  <key width="1.1" key0="fn" key1="loc alt" key2="loc change_method" key3="switch_emoji" key4="config"/>
  <key width="3.9" key0="space" key7="switch_forward" key8="switch_backward" key5="cursor_left" key6="cursor_right"/>
  <key width="1.2" key0="l" key1="|" key2="ľ" key3="\\" key4="π" />
    <key width="2.3" key0="enter" key1="loc voice_typing" key2="action"/>
</row>
<!--⊙⌾⍟⏣▣○-->
</keyboard>

Alt key is added via settings PS: The people that use the default layouts also had the size changed after an update, they don't use the top rows though.

CendaCZ avatar Aug 02 '25 02:08 CendaCZ