Date is not shown properly

I’ve configured the basics of Facer tags, expressions, etc in my Notepad++ so that it highlights each differently, making it even easier to read a long complicated conditional:

notepad++

The configuration is compiled into an XML file which one can import into their own Notepad++ and use. I tried to upload it here but unfortunately it won’t let me, so I put it on DropBox. It’s a small plain text file.

Download and save the file. In Notepad++ go to the LANGUAGE menu and select DEFINE YOUR LANGUAGE. From there, import the XML file and close the language window, then exit Notepad++ and restart it. Now you should see “Facer” towards the bottom of the LANGUAGE menu, you have to manually select “Facer” each time. Paste formulas and it should get highlighted per the screenshot.

4 Likes

Thank you so much, that is great!

1 Like

Mmm, I guess I am doing something wrong. I think I have loaded it ok but the tags are not highlighted. Is there a setting or option somewhere I need to set?

YVW! Let me know if it works… before I resorted to DropBox I had pasted the XML file’s contents in my previous reply, but in the preview it got utterly clobbered.

1 Like

Ah so you’re one step into it… move away from that line, a “selected” line is for some reason not fully highlighted, like line #2 below:

notepad++

1 Like

{ Edit:} sorry, I did not follow . I see now. All is working ok. Thanks

This is so cool! Thanks agian.

:grinning:

1 Like

Yep, you’re perfectly right!!! I was not a champion in math :sweat_smile:
Now it works in each gear. Thanx a lot. Now remain only an issue in the formula for the zodiac rotation:
the “famous” Mellin one works but miss some days randomly:
(((#DM# + (clamp((#Dd# - 19),0,1))) / 12) * 360)

the second one I found does not miss days but doesn’t work on wear os… :thinking:
($#DD#<=19||#DD#>=356?0:$$#DD#>=20&&#DD#<=48?30:$$#DD#>=49&&#DD#<=78?60:$$#DD#>=79&&#DD#<=109?90:$$#DD#>=110&&#DD#<=139?120:$$#DD#>=140&&#DD#<=171?150:$$#DD#>=172&&#DD#<=202?180:$$#DD#>=203&&#DD#<=234?210:$$#DD#>=235&&#DD#<=264?240:$$#DD#>=265&&#DD#<=295?270:$$#DD#>=296&&#DD#<=325?300:$$#DD#>=326&&#DD#<=355?330:$+210)

Any idea? Some bracket missed in this mess? :joy:

Anyway thank you very much to everybody for your kindness! really.

1 Like

Thank you very much @kourosh ! With this thread I opened the Pandora’s box! Very interesting the idea of notepad. With the mac I use Visual Studio code.

1 Like

Now it should works properly in wear os. Could you kindly confirm? Thanx

1 Like

I have a GW4, which we know is Wear OS, and it’s working just great for me, very nicely designed :clap::+1:

1 Like

Yes I concur with @icrltd4 - the display on my Android phone is good and the face appears to be working correctly on our ancient Huawei Watch 1 ( Android Wear 2.35 ).

1 Like

Excellent work. Thanks.

2 Likes

Thanks a lot! At last we did it! :+1: :+1:

1 Like

Great! Thank you very much!!

2 Likes

Hmmm … just saw this great progression - but what is the fully operational formula now?

1 Like

for the date is:
(((#Dd#*11.61290)-11.61290))

for the zodiac is:
(((-(#DM#+(clamp((#Dd#-19),0,1)))/-12)*360)-285)
even if regarding the latter still remains minimal issues in data range of sign swapping. I’m still working on this with the precious help of @andrew.dowden

1 Like

Hi @mnfudoshin did you manage with zodiac rotation? I have a watch face where I am doing a similar (trying to do) thing. So your final solution will be of great value to me.

1 Like

Hi @BIELITZ, the zodiac rotation is controlled by the formula reported in the previous post:
(((-(#DM#+(clamp((#Dd#-19),0,1)))/-12)*360)-285)
the last “-285” is a variable related to the final position assigned to the zodiac wheel in your watch, so you can modify it until the symbol reach the correct position, according to the month. Then test the whole rotation swapping months in the facer calendar widget.

1 Like

Thanks @mnfudoshin for clarifying that - it will help me a lot. I’m trying to replicate the famous clock in Prague - your rotation formula is a step in the right direction thanks again

1 Like