Patch: Timestamped sections in stock Notes app

Rating: 
5
Your rating: None Average: 5 (3 votes)

Add an option to the stock Notes app pulley menu for inserting timestamped sections to keep order.

Screenshots: 
Application versions: 
AttachmentSizeDate
File sfos-patch-notes-sections-1.0.0-2.noarch.rpm7.83 KB26/06/2019 - 14:09
File sfos-patch-notes-sections-1.0.1-1.noarch.rpm8.43 KB15/07/2019 - 17:24
Changelog: 

1.0.1:

- translations added: Chinese, French

- internally: code cleaned up

1.0.0:

- initial public release

Comments

Historyscholar's picture

Thanks :)

Historyscholar's picture

"zh-CN" "add timestamped section"="添加时间戳记" yyyy-MM-dd,ddd HH:mm

ichthyosaurus's picture

thanks; I uploaded a new version - please check if everything is correct!

Historyscholar's picture

Can I translate this patch ?

ichthyosaurus's picture

Yes and no...

If you can give me the following, I can add your language:

  • name of your locale (eg. "en_US" or "fr_FR")
  • translation of the string "Add timestamped section"
  • short date format string without time (like "ddd, yyyy-MM-dd", see the docs)
  • time format string (like ", HH:mm")
  • regex for the short format (like "/^[a-zA-Z]+\.?, \d+\. \d+\. \d+:\n/" for German)
  • regex for the long format (like " /^[a-zA-Z]+\.?, \d+\. \d+\. \d+, \d+:\d+ Uhr:\n/" for German)

It relies on detecting colon signs etc., though, and I don't know if that is also usable with all languages.

 

eson's picture

Nice thought, but can't make it work on Xperia X, SFOS 3.0.3.10 and Foil Notes

Thaodan's picture

It's for the stock app.

ichthyosaurus's picture

I clarified it in the description

eson's picture

Thanks! Is it possible to make it work also with Foil Notes, or should I address Foil Notes dev?

I'm not good enough developer to make it on my own.

ichthyosaurus's picture

I'd recommend you contact the author of Foil Notes. This way, he could (for example) add proper support for translations etc. which is nearly impossible via a patch.