Commit Graph

17359 Commits

Author SHA1 Message Date
Alvaro Figueroa 57a7114892 Translated using Weblate (Spanish)
Currently translated at 100.0% (775 of 775 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2020-08-18 01:28:10 +02:00
Hosted Weblate 747711c7ca Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2020-08-18 01:28:10 +02:00
Taku Fukada ec3d99950e Translated using Weblate (Japanese)
Currently translated at 57.6% (447 of 776 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/ja/
2020-08-18 01:28:10 +02:00
Dan Halbert 94ecf33a5c
Merge pull request #3281 from dhalbert/fix-spim3-buffer-location
SPIM3 buffer must be in first 64kB of RAM
2020-08-17 19:28:03 -04:00
Scott Shawcroft abfe718f46
Merge pull request #3286 from sommersoft/docs_build_pdf
Build PDF Docs on RTD
2020-08-17 15:19:20 -07:00
Scott Shawcroft 19706a7eec
Merge pull request #3280 from hierophect/esp32-wroom-neopixel
ESP32-S2: Add Neopixel to Wroom
2020-08-17 15:07:19 -07:00
Scott Shawcroft 377503e61c
Merge pull request #3284 from dhalbert/fix-3171-evt-handler
Remove event handler before setting it to NULL
2020-08-17 15:02:29 -07:00
Brent Rubell b1a8fb83fa
Merge pull request #3251 from jerryneedell/jerryn_rfm9x
RFM9x -- freeze library into build
2020-08-17 17:11:35 -04:00
Dan Halbert 6e5c2b3fe2
Merge pull request #3260 from rhooper/pixelbuf-iterable
Make pixelbuf support iterables and floats
2020-08-17 11:56:31 -04:00
Jeff Epler 1ccd2e234f allocate_display_bus: fix bug where in-use bus would be returned 2020-08-17 10:48:23 -05:00
Lucian Copeland d0d6a951da Translations 2020-08-17 10:10:49 -04:00
Dan Halbert 16ff7b167c
bdmicro_vina_m0: inline limit 60 -> 50
The ja translation was not fitting.
2020-08-17 10:05:25 -04:00
Dan Halbert dcbd3b4994
Merge pull request #3289 from hexthat/patch-6
Update zh_Latn_pinyin.po
2020-08-17 08:59:43 -04:00
Dan Halbert 6ebcf5b929
Merge pull request #3290 from jepler/quiet-build-messages
Quiet build messages
2020-08-17 08:57:07 -04:00
Dan Halbert da48ab0568 add generic services 2020-08-16 23:17:08 -04:00
Jeff Epler b1d210cca7 remove trailing whitespace 2020-08-16 21:33:36 -05:00
Jeff Epler ead2554c78 mpy-cross: Silently clone when building for static-raspbian
Also move the construct earlier.  This prevents the message
```
make: pitools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc: Command not found
```
from occurring during the first build, since make was evaluating the line
```
mpy-cross.mk:COMPILER_TARGET := $(shell $(CC) -dumpmachine)
```
before $(CC) was created by the clone.  Nothing bad seems to have come of
this, but it's nice to fix it anyhow.  (And interesting that it was lost
among the spewed messages we're removing now)
2020-08-16 21:26:24 -05:00
Jeff Epler 880fe1a694 gen_display_resources: silence 'missing character' message
Since we made the decision to allow translations which do not have coverage in
the terminal font, these routinely occur and are expected.  The message is
unhelpful and due to their voume make it harder to find relevant information
particularly in github actions results.
2020-08-16 20:58:24 -05:00
Jeff Epler 08ed09acc6 makeqstrdata: don't print "compression incrased length" messages
This check as implemented is misleading, because it compares the
compressed size in bytes (including the length indication) with the source
string length in Unicode code points.  For English this is approximately
fair, but for Japanese this is quite unfair and produces an excess of
"increased length" messages.

This message might have existed for one of two reasons:
 * to alert to an improperly function huffman compression
 * to call attention to a need for a "string is stored uncompressed" case
We know by now that the huffman compression is functioning as designed and
effective in general.

Just to be on the safe side, I did some back-of-the-envelope estimates.
I considered these three replacements for "the true source string size, in bytes":
+    decompressed_len_utf8 = len(decompressed.encode('utf-8'))
+    decompressed_len_utf16 = len(decompressed.encode('utf-16be'))
+    decompressed_len_bitsize = ((1+len(decompressed)) * math.ceil(math.log(1+len(values), 2)) + 7) // 8

The third counts how many bits each character requires (fewer than 128
characters in the source character set = 7, fewer than 256 = 8, fewer than 512
= 9, etc, adding a string-terminating value) and is in some way representative
of the best way we would be able to store "uncompressed strings".  The Japanese
translation (largest as of writing) has just a few strings which increase by
this metric.  However, the amount of loss due to expansion in those cases is
outweighed by the cost of adding 1 bit per string to indicate whether it's
compressed or not.  For instance, in the BOARD=trinket_m0 TRANSLATION=ja build
the loss is 47 bytes over 300 strings.  Adding 1 bit to each of 300 strings will
cost about 37 bytes, leaving just 5 Thumb instructions to implement the code to
check and decode "uncompressed" strings in order to break even.
2020-08-16 20:50:48 -05:00
hexthat d27a1aca18
Update zh_Latn_pinyin.po
fixed some “ to "
2020-08-16 18:18:36 -07:00
hexthat ddd79a2483
Update zh_Latn_pinyin.po
add translations
2020-08-16 16:33:03 -07:00
Jeff Epler 7604114b47
Merge pull request #3287 from weblate/weblate-circuitpython-main
Translations update from Weblate
2020-08-16 08:25:14 -05:00
Wellington Terumi Uemura 4074915779
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (776 of 776 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2020-08-16 04:25:23 +02:00
Jeff Epler da89c30498
Merge pull request #3285 from weblate/weblate-circuitpython-main
Translations update from Weblate
2020-08-15 21:25:14 -05:00
sommersoft e0fd85bc45 build.yml: more texlive/latex dependencies 2020-08-15 16:24:21 -05:00
Kevin Matocha 6c199c5d69 Update documentation to remove whitespaces 2020-08-15 15:58:04 -05:00
sommersoft 6e67c4f7d4 build.yml: ensure 'latexmk' is installed 2020-08-15 14:42:12 -05:00
sommersoft 97415fc604 .readthedocs.yml: add directive for RTD to build a pdf version of the docs 2020-08-15 14:30:12 -05:00
sommersoft 670b6ebecc build.yml: add doc building test for latex/pdf 2020-08-15 14:29:38 -05:00
sommersoft ffffccf7a0 docs/rstjinja.py: add jinja processing for building latex (pdf) docs 2020-08-15 14:29:09 -05:00
Hosted Weblate 6e3ac5adc8
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2020-08-15 21:12:28 +02:00
Dan Halbert 41be0fdd81
Merge pull request #3283 from jepler/fix-weblate-conflict
Fix weblate conflict
2020-08-15 15:12:21 -04:00
Dan Halbert ef40f83f99 Remove event handler before setting it to NULL 2020-08-15 14:39:53 -04:00
Jeff Epler ac15726e13 Merge remote-tracking branch 'weblate/main' into origin/main 2020-08-15 10:12:02 -05:00
Jeff Epler 4296aa262e locale: Fix percent-space in several translations 2020-08-15 10:04:51 -05:00
Dan Halbert cf0f3d70b5 SPIM3 buffer must be in first 64kB of RAM 2020-08-15 10:31:56 -04:00
Dan Halbert 1c8e11b2cb bug in char get_value; raise NotImpl; better arg validation 2020-08-14 23:38:58 -04:00
Lucian Copeland 7078c63062 Add missing Neopixel pin definition 2020-08-14 16:58:24 -04:00
Lucian Copeland 0fc730bc5a Expand PulseOut API, debug cleanup 2020-08-14 16:36:02 -04:00
Lucian Copeland 88fcc19e24 Add PulseIn 2020-08-14 15:30:48 -04:00
Kevin Matocha bfa9904f3e Corrected erroneous edit to fill description to -> None 2020-08-14 14:28:06 -05:00
Kevin Matocha e84723abba Bug fixes related to input parameter handling x1,y1. Update comments 2020-08-14 14:22:34 -05:00
Kevin Matocha 0c1768010b Cleaning up with tannewt's help and adding the translation file 2020-08-14 13:43:32 -05:00
Kevin Matocha fc1347ac2a deleted whitespace 2020-08-14 13:37:06 -05:00
Kevin Matocha ba5dedc1df deleted whitespace 2020-08-14 13:37:06 -05:00
Kevin Matocha b1fce9e933 Deleted trailing whitespace 2020-08-14 13:36:59 -05:00
Kevin Matocha a66ef32da2 Added inclusive indexing for x2,y2, fixed default value handling for x1,y1, added bitmap palette comparison 2020-08-14 13:15:01 -05:00
Margaret Matocha 824f47d6e9 Added bitmap.blit function for bitmap slice copy 2020-08-14 12:59:57 -05:00
Margaret Matocha 4ba9ff892c Added bitmap.blit function for copying slices of bitmaps 2020-08-14 12:59:48 -05:00
Lucian Copeland f9512983ff Add PulseOut 2020-08-14 12:21:41 -04:00