yashsingh1/xdaforums huggingface dataset:
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
No this is done in Poy2typoclock.lua. Look at this code:

the line bold marked force the month to be shown in Caps letters, just substitute for this

After the change click on file _Generate_files_for_cab.bat and you will obtain the compiled files in folder \cab\_files_final , ready to put into the cab and install

Then you have to find the way to get only the first letter in capital for month & dayweek in your rom setting. Or better advice from Lua coders.

PS - small trick: put your device in DevMode

If you wish to modify any widget is very hard to get the files, compile, put into the cab, install, see that is not enough changes so you have to uninstall and start again.

Co0kie has a DevMode for easy try the widgets in the device:

0) EDIT sorry forgot the very begining: conect the device to your PC via USB and synchronize

1) uninstall the widget you want to modify

2) run the file z_init.bat

3) put the device in DevMode. Go to HKCU\Software\HTC\Manila\CHTI.AddonWidgets.DevMode and change to DWORD =1 (create if does not exit)

4) do the changes in the widget files in workspace folders, remember to save after finish.

5) run the file _Deploy_to_device_in_dev_mode.bat. It will pass the files to the device and will restart sense. If the widget is not displayed you will have to activate it in the CHTMenu>edit mode>add new element

6) repeat 4 & 5 as much as necessary

7) After the changes click on file _Generate_files_for_cab.bat and you will obtain the compiled files in folder \cab\_files_final , ready to put into the cab and install

8) Do not forget to dissable DevMode once you finish and before install any new widget (HKCU\Software\HTC\Manila\CHTI.AddonWidgets.DevMode DWORD =0)

My advice is to create a baseline, an initial working workspace. Once you do a change and it works, go for the next (step by step). Always have a backup. And enjoy!

We will help as much as we can, but please understand this is developers mode It may crash your sense so be ready to hard resset if something is wrong. CHTS can help
[HD2 Windows Mobile 6.5 Themes and Apps] Looki75:
First month letter capitalized... still!

Thanks poyensa, I could progress on my issue thanks to you.

Acutally, it is not a matter of date formating. I mean "MMMM" is ok: I noticed in Poy2typoclock.lua that the month line contains the string.upper() function. Removing this function I got the line like:

After compiling, etc... I got a nice all-low-caps month name.

BUT :( I would like to have the first character capitalized...

So I tried many ways and after 2 hours of unsuccessful tries, I decided to ask for help... again... :o

Ideally, is there a string function which could capitalize the first character of a string? Something like

:p

I did not find such, so I tried to get around it.

I tried:

and

and other ways... but the result is always the same: it screws completely my home tab: CHT2 widgets are randomly placed, some are not there, the regular CHT2 clock is completely messed up, showing a BIG "M..." without graphics... :( I am lucky that everything was reverted to original just by un-installing my mutant cab :) no hard reset was necessary ;)

Long story made short: I cannot get the first letter capitalized!

I am new at lua programming, so maybe it is just a small stupid mistake from my part...

Could you help?

Thanks...
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
Young looki welcome to the Force. Use the Force around you :)

http://www.lua.org/manual/5.1/manual.html#5.4

I ve been searching but still havent found that function to get first letter in capital, thats way i suggest to get advice from others Lua's gurus

About sense crash it use to happend when try new thins, but nothing serious. Normally sense is recovered after uninstall the cab you are testing, or turn off DevMode.

May the Force be with you :D
[HD2 Windows Mobile 6.5 Themes and Apps] Looki75:
Yes... the force was not here all day. :o

Actually with one of my try, I got a very strange result: the first letter was sometimes capitalized and sometimes a replaced by a square!... I don't know what it was depending upon...

Anyway, as I could see the text with cap first letter, I realized that I prefer all-lower-caps instead... so I will just stop here.

If someone is interested, here is the cab ;)

Cheers, Looki
[HD2 Windows Mobile 6.5 Themes and Apps] colossus_r:
Mod of Poyensa Typoclock

Hi poyensa...

I moded your clock and i shared the cab in this thread...

http://xdaforums.com/showthread.php?p=9499195

Thanks for the hard work and the great idea

colossus
[HD2 Windows Mobile 6.5 Themes and Apps] brainmaster:
I was having troubles with custom fonts renaming them to typoclock.ttf and replacing the original one - it didn't worked.

But now it works - its not enough just to rename the filename to typoclock.ttf.

You need to rename the font name also to typoclock and then to rename the file name to typoclock.ttf, then it will work.

You can use any of the Font Editors with the capability to rename the fonts.

Example - if you take ArialBold.ttf and rename it to typoclock.ttf - the font name still stays "Arial Bold". You have to rename the font itself to "typoclock" and save the font and then rename the file name to typoclock.ttf.

Unfortunately some Windows dialogs are also shown in the new font.

@ poyensa - you should include this info into the first post.
[HD2 Windows Mobile 6.5 Themes and Apps] brainmaster:
Here is nice Handwriting font for typoclock. Just extract the typoclock.ttf file and copy it to your Windows folder. Overwrite the old one.

Screenshot:
[HD2 Windows Mobile 6.5 Themes and Apps] brainmaster:
Here is another one - please uninstall original r4 cab file and install this one.

Screenshot:
[HD2 Windows Mobile 6.5 Themes and Apps] saugbaer:
BIGTHX @poyensa

...as always perfect job :D
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
Thanks for the new fonts! I have sometimes founded very hard to adapt typoclock to the new fonts so i decide to add a new feature to this Typoclock, also big thanks to colossus_r because he drived me to this new version:TYPOCLOCK_R5

I have added a new layout named "personalize" in which all the elements of typoclock are linked to the registry values (CHT.Typoclock.XXXX) it means that hours, minutes, colon, daydate, weekday, month & AMPM can be moved, resized, coloured, and shown or hidden, also month and weekday can be shown in upper or lower letters.

So you can easily redesign your own typoclock, or just adjust the position of the elements after change the font (typoclock.ttf) The new version of typoclock keeps the same variables and previous layouts (white, black, blue, yellow & green) If you want to install it be sure to uninstall previous verssion.

The registry values used are as follow:

[B][HKEY_CURRENT_USER\Software\HTC\Manila][/B]
"CHT.Typoclock.YearPosY"="-150"
"CHT.Typoclock.HourSize"=dword:00000078
"CHT.Typoclock.DaydatePosY"="-100"
"CHT.Typoclock.YearPosX"="140"
"CHT.Typoclock.WeekdayPosY"="-110"
"CHT.Typoclock.MonthSize"=dword:0000003c
"CHT.Typoclock.MonthPosY"="-60"
"CHT.Typoclock.MonthPosX"="0"
"CHT.Typoclock.MinuteSize"=dword:00000078
"CHT.Typoclock.MinutePosY"="40"
"CHT.Typoclock.MinutePosX"="155"
"CHT.Typoclock.HourPosY"="40"
"CHT.Typoclock.HourPosX"="0"
"CHT.Typoclock.DaydateSize"=dword:00000078
"CHT.Typoclock.DaydatePosX"="0"
"CHT.Typoclock.ColonVisible"=dword:00000001
"CHT.Typoclock.ColonPosY"="40"
"CHT.Typoclock.ColonPosX"="125"
"CHT.Typoclock.MonthCap"=dword:00000001
"CHT.Typoclock.WeekdayCap"=dword:00000000
"CHT.Typoclock.MinuteVisible"=dword:00000001
"CHT.Typoclock.WeekdayPosX"="140"
"CHT.Typoclock.YearVisible"=dword:00000001
"CHT.Typoclock.YearSize"=dword:0000003c
"CHT.Typoclock.WeekdaySize"=dword:00000032
"CHT.Typoclock.WeekdayVisible"=dword:00000001
"CHT.Typoclock.HourVisible"=dword:00000001
"CHT.Typoclock.ColonSize"=dword:00000078
"CHT.Typoclock.DaydateVisible"=dword:00000001
"CHT.Typoclock.AMPMPosY"="-15"
"CHT.Typoclock.AMPMPosX"="130"
"CHT.Typoclock.AMPMSize"=dword:0000000f
"CHT.Typoclock.ColonColor"="255,255,0"
"CHT.Typoclock.HourColor"="46,254,247"
"CHT.Typoclock.MinuteColor"="255,255,255"
"CHT.Typoclock.MonthVisible"=dword:00000001
"CHT.Typoclock.AMPMColor"="255,255,255"
"CHT.Typoclock.YearColor"="125,125,125"
"CHT.Typoclock.WeekdayColor"="255,0,0"
"CHT.Typoclock.MonthColor"="0,255,0"
"CHT.Typoclock.DaydateColor"="0,0,255"

LINK FOR DOWNLOAD TYPOCLOCK_R5
[HD2 Windows Mobile 6.5 Themes and Apps] wez89:
thanks for the update, will certainly give this a try (:
[HD2 Windows Mobile 6.5 Themes and Apps] Dunc001:
Now just to make it easily equitable in CHTE rather than registry... ;)
[HD2 Windows Mobile 6.5 Themes and Apps] Looki75:
Thanks Poyensa!!!! Very useful, THANKS, THANKS, THANKS!!!

BTW, on your screenshots, I see a widget with weather on today + next days... could you please indicate me which widget is that?

Thanks again,

Looki!
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
you re welcome :)

@looki, find it here http://xdaforums.com/showthread.php?t=854778

@dunc, it would be great. I ve been looking to eboelzner's SDK but i have not enough knowledge for that .... yet :D
[HD2 Windows Mobile 6.5 Themes and Apps] Lunie:
Thanks, giving this a try going to edit it in post colors, thanks again =)
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
Lots of fonts in great app KDFont http://xdaforums.com/showthread.php?t=718885 just rename as typoclock.ttf after download. This is ThreeSixty
[HD2 Windows Mobile 6.5 Themes and Apps] BHS Interceptor:
Muchas gracias for updating constantly your work :D

They´re great alternatives for a lot of us ;)
[HD2 Windows Mobile 6.5 Themes and Apps] mwalt2:
Wow, awesome work on the personalization. This makes it a lot easier to use other fonts without the need of editing things on a PC :). Thanks!
[HD2 Windows Mobile 6.5 Themes and Apps] colossus_r:
Hi poyensa....

Great ...this is what i was talking ...now its easy to change the values or release some preconfigured sets of registry files for easy setup.

Once again ...great work

colossus
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
with typoclock_r5 now you can!

go to registry key [HKEY_CURRENT_USER\Software\HTC\Manila] and change the followings values:

CHT.Typoclock.ColonVisible=0

CHT.Typoclock.HourVisible=0

CHT.Typoclock.MinutesVisible=0

then swipe up-down in home screen and the changes must be there ... :)
[HD2 Windows Mobile 6.5 Themes and Apps] mike2nl:
Jesus poyesa, what a very nice peace of widget.

One question about all the settings. At which moment we will have the TypoClockEditor :D:D for that?
[HD2 Windows Mobile 6.5 Themes and Apps] geralt:
Hi Poyensa

thank you for your great work. I have one point. Would be possible to add to the "personalize" a horizontal alignment settings?

Thanks for your replay.

Geralt
[HD2 Windows Mobile 6.5 Themes and Apps] BHS Interceptor:
Hola Poyensa, have you checked it changes in registry stick to different profiles in CHTS? I would also check it, but can´t at the moment :o:D

Indeed, this would be great, as a pop up when touching the widget in edit mode or advanced... :eek:

+ 1 for that :D
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
Im not sure what 'horizontal alignment' means, but every element of typoclock_r5 can be easily positioned by modifying the registry values CHT.Typoclock.elementPosX / PosY

@Ber, About CHTS i would say the changes in the registry are saved as they start by CHT. i will test ...
[HD2 Windows Mobile 6.5 Themes and Apps] BHS Interceptor:
Gracias amigo ;-) It would be also great to have the items of your clock to be set "vertically" in columns :eek:

D S 2 L

I E 0 U

C I 1 N

I S 0 E

E S

M

B

R

E

Sort of, a "matrix" with also everything "set-bar" y con ello el secreto del reloj que tanto nos gusta en Alemán, but beeing your own version ;)
[HD2 Windows Mobile 6.5 Themes and Apps] Dunc001:
Poy, in mode9 for text objects you can add a new property as 'Horizontal Alignment' and the values (according to Co0kie) are 0=aligned left, 1=aligned centre and 2=aligned right. By the same token you can add 'Vertical Alignment' - 3=top, 4=middle, 5=bottom. Obviously within the size (width and height) specified.

Hope that helps.
[HD2 Windows Mobile 6.5 Themes and Apps] tonimontoia:
ragazzi si puo avere questo magnifico cab in lingua italiana??? scusate ma 'l'inglese non lo so scrivere.

boys can have this wonderful cab in Italian?? sorry but 'the English do not know write
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
caro amico, typoclock questo fatto nella tua lingua, provare! :D
[HD2 Windows Mobile 6.5 Themes and Apps] tonimontoia:
grazieamico per avermi risposto,ma io ho installato il cab ma non è in italiano ,mi daresti il link del cab giusto? grazie e complimenti per il lavoro fatto.ciao

grazieamico responded to me, but I installed the cab but not in Italian, would you give me the link of the cab right? thanks and congratulations for a job fatto.ciao

grazie amico risolto con il cab giusto ciao e grazie.

thanks friend solved with the right cab hello and thanks
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
well, the month and the day of the week is taken directly from the rom in its own language, install typoclock_r5 from post#1
[HD2 Windows Mobile 6.5 Themes and Apps] msscalera:
Great job, many thanks poyensa.
[HD2 Windows Mobile 6.5 Themes and Apps] noureddinensn:
thanks for thoses themes
[HD2 Windows Mobile 6.5 Themes and Apps] pkoper:
Excellent work poyensa.

I am trying to cook your clock into a rom.

Using slot0 I inlude following in the registry:

[HKEY_CURRENT_USER\Software\HTC\Manila]
"CHTI.AddonWidgets.Slot0"="\\CHTAddons\\Poy2typoclock"

plus the reg entries from your cab.

File names are:

7F913909_manila

4837EB59_manila

615484A6_manila

plus the xml and ttf.

On first boot sense and your widget work fine. When I however change something in CHTEditor, Sense will not restart.

Is there something else the dll inside the cab does?

Thank you
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
Sorry pkoper i cannot help you. The manila names looks good . I have never cooked any rom, just use them :D but have read inside Developers Group about some problems for cooking widgets in the room. I think dll does nothing more than change the names of the CHTmode9_manila & CHTlua_manila, but i do not know indeed.

We need to wait for Co0kie returns
[HD2 Windows Mobile 6.5 Themes and Apps] sasa g:
Great job.

Happy new year.
[HD2 Windows Mobile 6.5 Themes and Apps] zi-to:
This is great, but I cannot use it:(. I have a problem with sense freezing when I restart sense...

Is it because of uncompresed manila in my phone (HD mini)??? Any help???
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
mmmm no compressed manila inside the cab .... have you allready installed the fix for 20 widgets?

http://xdaforums.com/showpost.php?p=9565725&postcount=3353
[HD2 Windows Mobile 6.5 Themes and Apps] zi-to:
thank you for reply. I did it now. After restart with new 7c60907d_manila file Sense restart is slower, but it runs. Precisely I already thought that sense was freezing once more and I wanted put out the battery, but then it was running...

Yesterday I tried another widget (weather) and I had same problem, so it is not link to your clock, but to widget at all...

I will try weather widget with new manila file... to check this

Any way clocks are perfect, I would like independent background widget to be able to move with the clock to any place and keep all middle place covered by background, but it is just personal view:).

Edit: so it help me, thx:) Slower restart was only first time, now it is runnig well even with weather widget. Super
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
look here for independant background

xdaforums.com/showthread.php?t=900077
[HD2 Windows Mobile 6.5 Themes and Apps] zi-to:
WOW!!!!!!!!!!!!!!!!!
[HD2 Windows Mobile 6.5 Themes and Apps] dziarsky:
I try this file: typoclock_r2_AMPMcolon.cab

Clock is great but on my language rom there is som not translated words.

Months are not translated. Week day are translated.

Also there is some cut space between clock and month.

[all in attached file]

Could somebody fix these few problems for me, please?

oh, one more. Clock font have much sharpened edges - is there any solution how to make it more smooth?
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
try r5 and adjust positions in the registry
[HD2 Windows Mobile 6.5 Themes and Apps] dziarsky:
Do i find some registry tutorials on this thread?
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
sure! find post #194
[HD2 Windows Mobile 6.5 Themes and Apps] MrBeOTP2:
hi poy :D

How could i edit lua file :D
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
you can of course. Use notepad2 (in tools folder of widgets kitchen) and compile with _generate_files_for_cab.bat after finish edition. Then find the corresponding file in _final_files folder of widget kitchen. Manila files can be copied directly to windows folder but CHTmode9_manila & CHTlua_manila has to be installed within the widget cab. Also you can try devMode for tests. Find the guide for making widgets made by rat_2665, and ask here what you need. I would like many widgets around, thats the life of CHT!
[HD2 Windows Mobile 6.5 Themes and Apps] dziarsky:
Its difficult to understaind what you share with me guys :). I am never before modify mobile files.

Anyway - typoclock r5 working finaly excelent - month-word is now in my language and sizes are also corrected :).
[HD2 Windows Mobile 6.5 Themes and Apps] TwinCZ:
R5 names are in Czech language OK, but I have another problem. I have older version inside my ROM (I´m using Chucky Dexter Dark One), so I can´t uninstall older version. What can I do?
[HD2 Windows Mobile 6.5 Themes and Apps] prabhat:
Thanks for bringing this Widget for CHT 2.0.

Question 1: Will this widget will show is English also?

Question 2: What are the registry reference that I can use to change location and position of different components?

Question 3: Can I also have Color combination saved in Registry?

Thanks.
[HD2 Windows Mobile 6.5 Themes and Apps] prabhat:
Work for English and

Got the registry reference at your Post# 194. Great article/widget.

http://xdaforums.com/showpost.php?p=9605390&postcount=194

Thanks.
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
you re welcome :)

@twin ... problems solved?
[HD2 Windows Mobile 6.5 Themes and Apps] prabhat:
Thanks dude. Now my Lock Screen looks nice after I used your Typoclock widget.

The nice thing is the saving the values in Registry :).
[HD2 Windows Mobile 6.5 Themes and Apps] prabhat:
One Quick Question:

Also I see below settings:

"CHT.Typoclock.MonthCap"=dword:00000001

"CHT.Typoclock.WeekdayCap"=dword:00000000

How do we make these Proper Case like:

Month = January

or Jan

WeekDay = Sunday

or Sun

Thanks.
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
that setting make the whole word (month or weekday) in capital letters -JANUARY- when is set 0 it takes the format from your rom. For others format you need to edit the widget with the kitchen from post#1.
[HD2 Windows Mobile 6.5 Themes and Apps] manalas:
Hi poyensa

How i can set Hour & Minute Size over 120. (I set more than 120 it come back smallest)

Thank for your works.
[HD2 Windows Mobile 6.5 Themes and Apps] Dunc001:
I don't think you can. You just have to scale everything down accordingly and then use the resize option on screen once the widget has been placed - same effect.
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
Yes i thought 120 was enough :D and always you can resize the widget as explained by Dunc.

In typoclock_r5 the font size is defined via registry keys, in the lua file CHTlua_manila (working on decompiled file \Kitchen\workspace\_lua\chtwidgetdev.luac):

The function GetCHTSettingInt(a,b,c,d) takes the values from the registry key HKCU\Software\HTC\Manila\CHT.XXX, where XXX = a; min value = b; max value = c; default value =d

So just modifying this function (with notepad2 included in the kitchen) can be used bigger values for the font size. Then recompile by clicking in _Generate_files_for_cab.bat and the file CHTlua_manila will be in the folder \kitchen\cab\_final_files ready to include it in the widget cab. Please do not modify the installation directory in the cab properties, because this may cause some problems.

Also you can try the changes before install the cab by using DevMode as explained here: http://xdaforums.com/showpost.php?p=8973448&postcount=2

Before finish, the mode9 file defines the height = 120 for the hour & minutes and some other variables, so increasing the font size may be not displayed correctly. Better to increase also this in file mode9.

Anyway i have made the new cab with font size up to 240. I hope is enough! :)

(Sorry i could not test myself, maybe you could :rolleyes:)
[HD2 Windows Mobile 6.5 Themes and Apps] BWA80:
Hi!

I will admit straight up that i am a total n00b with this font customizing thingy.. so if there is somebody that has time and knowledge to make the attached font typoclock, its equal typophone 4. All of the fonts are the same, but some are bolder and bigger...

So thank you if you can do this!!
[HD2 Windows Mobile 6.5 Themes and Apps] :
@poyensa I would like to say thx only for great widget you made
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
you are welcome :)
[HD2 Windows Mobile 6.5 Themes and Apps] ericsonicsson:
Hola!

poyensa, I'm trying to get just hour and minutes clock but for some reason there is still a year visible, despite CHT.Typoclock.YearVisible=dword:0 is set.

It looks likeYearVisible is not testes by widget at all.

(I'm using _r5 from post #241)
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
Thanks for the feedback ericsonicsson i have corrected the bug, download the cab fixed here or post#1

BTW I have started a project to make easy configure typoclock, and maybe other widgets ...
[HD2 Windows Mobile 6.5 Themes and Apps] ericsonicsson:
Nice project!

I could suggest it have settings backup, that would be handy when installing upgrades, no need to re-apply all the values for a widget.
[HD2 Windows Mobile 6.5 Themes and Apps] __:
The widget you have created is very good!

To help improving it, I have some suggestions:

1. It would be very nice, if user could define ...

1.1 Layer

... on which Layer which value (hour, minute, month, ...) is placed.

(The values are on different layers, but user is not able to define yet, which value is on which layer!)

e.g: month, date & weekday are behind year. (Please see the attached picture.)

1.2 Transparency

... the transparency of each value.

1.3 Outline

1.3.1 ... whether values should have an outline or not.

1.3.2 ... the colour of the outline.​

1.4 Capital Letter

... whether the first letter of month and weekday should be a capital one, or not.

e.g: If "CHT.Typoclock.MonthCap" (in the registry) is set to:

0= all letters small,

1= all letters capital,

2= first letter capital and all other small​

2. Distance To Other Widgets & Dimensions

It would be very fine, if the area of Typoclock would be as large as the area that developes by combining the value's sizes and their distance to each other [red box].

Because Tasks widget overlaps Typoclock and Typoclock disappears, when I place it a little bit higher! (adverted to the attached picture)

​
[HD2 Windows Mobile 6.5 Themes and Apps] ericsonicsson:
poyensa, there is a minor issue with typoclock dimensions, similar to previous post 2. Distance to...

All area inside pink frame activates clock settings. Maybe I could change this 'hot area' myself with editing some config file or registry?

I love typoclock but can not get used to this oversized hot area - sometimes I accidentally activate clock settings while just sliding cht right-left :(

Probably widget area is not downsized when it is resized?
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
Not in the registry, but the lua files. I need to find the time to do Typoclock Menu Setting, and solve this problem. Typoclock was one of the first widgets and needs some updating works.