Repository navigation
Usugami 4.0.0
Added
- Translate PDF, in Usugami (Usugami.apk) only, under Convert from PDF on Home and in Choose a
tool: a copy of a PDF in another language, made on the phone with Google ML Kit's translation.
From is the PDF's language, worked out on the phone from its text ("Detected from the PDF's
text"), or chosen when Usugami can't tell; To starts on the app's language (on English when
the PDF is already in that, on Spanish when both are English). Both list the 59 languages ML Kit
translates. The pages are chosen as in PDF to images or text.- Language packs: each language but English, which is built in, needs a pack of about 40 MB,
downloaded once. Before a run that needs one, Usugami asks; Android's download manager then
fetches it from Google, with Android's own notification, while the working dialog says how
much has come. Cancel stops the download and removes a pack that hadn't finished. Usugami says
at once when the phone isn't connected, after about a minute when the connection goes during a
download, after two minutes when a download gets nowhere, and within seconds when the storage
can't hold the pack. After that, translating needs no internet. Language packs, on the
tool's screen, lists the packs on the phone, and each can be deleted. - Scanned pages are read with text recognition first (languages written in the Latin
alphabet, Hindi and Marathi), which Google Play services downloads the first time. When text
recognition can't be had, the pages with text are still translated, and its dialog shows only
when nothing else could be. - The new PDF (such as Report_translated.pdf) shows each page as a 150-dpi picture of itself,
with the original text painted out and the translation written in its place as real text you
can search and copy: in the original's colour, at about its size, bold where it was bold, right
to left in Arabic, Hebrew, Persian and Urdu, and with Japanese or simplified Chinese letter
shapes. Each entry of a contents page, a price list or a form is translated on its own. What
is only a number, a date, an amount, a code, a file's name or an e-mail or web address stays on
the picture, and so does text the translator gives back unchanged, such as a name on its own
or text already in the language chosen. Codes, references, postcodes, IBANs, BICs, phone
numbers and e-mail and web addresses inside a translated sentence come back as written; names
of people, companies and places can still be changed by the translator. The title and bookmarks
are translated; form fields, comments, links, metadata and scripts aren't kept (what the page
shows of a field or a comment is in the picture). Notes under the result name the pages left
as they were and those where some text was left untranslated. - Its limits are in the
README (What can't
Translate PDF do?): the translator can change names of people, companies and places, and a
lone number or year, so check them; translations are drawn in the phone's sans-serif, bold
where the original was bold but never italic, set ragged, and can differ in size from paragraph
to paragraph; right-to-left pages aren't mirrored; a contents page's numbers no longer stand in
a column; text turned more than about 10 degrees, upside down or running down the page is left
as it is; over a photo or a gradient the patch under a translation can show streaks; scanned
pages get no bold.
- Language packs: each language but English, which is built in, needs a pack of about 40 MB,
Changed
- Scan document takes all the photos first, in all three editions. After each photo the new
Photos screen shows the photos taken so far, numbered in the order taken, each with a button
that removes it, with Take another and Done; leaving it with photos taken asks first.
Done crops each photo in turn on the crop screen's corners step, "Page 2 of 5" under the
title, with Next on every one. Back goes to the image before, with the corners it was given
(from the first photo, back to the photos), and Discard photo takes a photo out of the scan.
After the last, one Filters screen shows the page chosen large in its look, the scan's pages
in a row under it, the looks, Brightness and Contrast, and Same filter for all pages, which
gives every page of the scan the chosen page's look, brightness and contrast. Every page starts
on Enhanced. Save puts the pages in Images to PDF, after those already there. Images picked
with Upload images are cropped one after another the same way, with Stop cropping to leave
the rest whole (Back on the first image does the same), and go on to Filters. The pages screen's
Take photo and the Scan document shortcut start the same kind of scan. Android stopping Usugami
at any step keeps the scan where it was; uploaded images still being added at that moment have
to be added again, as Usugami then says. Before, each photo was cropped and given its look before
the next was taken, and a new photo started on the look chosen last. Cropping a page again with
its crop button, and the ID card scan, work as before. - Settings → Donate opens a page with the four steps to donate through
Buy Me a Coffee: open Usugami's page there (its button opens
it in your browser), choose how many coffees to buy, add your name and a message if you like,
and tap Support to pay. Under the steps, Donate with GitHub Sponsors instead opens the four
steps for GitHub Sponsors, which were on this page
before. The Sponsor button on Usugami's GitHub page lists Buy Me a Coffee too, and the F-Droid
listings' Donate link goes there. - Usugami.apk is about 19 MB (it was 5.1 MB), because ML Kit's translation is inside; its
native code is kept compressed in the APK and unpacked once when the app is installed. It is for
ARM phones now (virtually all phones), like Usugami OCR: it no longer installs on x86 Android
without ARM translation, such as Waydroid or plain x86 emulators. Usugami Lite still does. - Usugami.apk has the internet permission (
INTERNETandACCESS_NETWORK_STATE, which ML
Kit's translation asks for), only so that Android's download manager can fetch language packs;
About and the privacy policy say so. Usugami's own process opens no connection: from its start
it refuses every http, https and ftp address, which stops ML Kit fetching its settings from
Google's Firebase, and OkHttp, which ML Kit brought only to register with Firebase, is left out,
with a stand-in that opens no connection. Usugami.apk's Java code, Google's libraries' included,
no longer writes debug and info messages to the phone's system log; ML Kit's native code still
writes the text it translates, and the translation, there. Like text recognition, ML Kit's
translation hands records of its use to Google Play services, which may send them to Google, and
a pack's download counts as Usugami's in Android's data usage. Usugami Lite and Usugami OCR still
have no internet permission, and none of Translate PDF's engine, Google code or texts (only a
little neutral shared code). - The open-source notices in About list ML Kit's translation and language identification, and say
that OkHttp and Okio, which ML Kit's translation depends on, are left out of Usugami, with a
stand-in of Usugami's own that makes no connections.
Which file should I download?
| File | Size | Pick it if… | Text recognition (OCR) |
|---|---|---|---|
| Usugami.apk (recommended) | 19.2 MB | You're not sure, or you want Translate PDF. ARM phones (virtually all phones). | Runs through Google Play services. The first time you use it, Play services downloads the text-recognition model (one for English, French, Spanish, German, Portuguese and Indonesian, one for Hindi), which needs internet then. |
| Usugami-lite.apk | 4.8 MB | You don't need text recognition, and want the smallest app with no Google code at all. | None. |
| Usugami-ocr.apk | 16.1 MB | Your phone has no Google Play services, or you want text recognition with no network use at all. ARM phones (virtually all phones). | Open source and built into the app (PaddleOCR's models, run by ncnn). Works without internet, ever. |
Translate PDF is in Usugami.apk only: Android's download manager fetches each language's pack from
Google once (about 40 MB), after Usugami asks, and then Usugami translates on your phone without
internet. Every other tool works offline in all three, except that text recognition in Usugami.apk
needs internet the first time (see the table). Usugami Lite and Usugami OCR have no internet
permission; Usugami.apk has it only for those downloads, and Usugami's own code opens no
connection. The pack downloads count as Usugami's in Android's data usage. While Translate PDF
works, Google's translation library writes the text it translates into the phone's system log, and
hands records of its use to Google Play services, which may send them to Google; see the
privacy policy. In Usugami.apk,
text recognition and translating use Google's ML Kit, which runs on your phone but is closed
source; Usugami Lite and Usugami OCR contain no Google code. The rest of Usugami is
GPL-3.0-or-later. All three files are signed with the same key. Usugami and Usugami OCR are the
same app: install one over the other to switch. Usugami.apk brings Translate PDF and the internet
permission; Usugami OCR keeps any language packs, but can't show or delete them, so delete them
under Language packs first if you don't want them. Usugami Lite is an app of its own (package name
io.github.nath_goa.usugami.lite) that installs next to them.
Had Usugami Lite 1.5.0? It was still the same app as Usugami, so Usugami-lite.apk now installs as a
new app, "Usugami Lite", next to it. Save any PDFs you need from the old one, then uninstall it (it
is called "Usugami"). In Obtainium, remove the old Usugami Lite and
add it again.
Had Usugami Offline? It is now Usugami OCR: install Usugami-ocr.apk over it, and your files and
settings are kept. In Obtainium, change its APK filter to ^Usugami-ocr\.apk$.
Needs Android 8.0 or newer. New to installing APKs? Follow the
step-by-step guide.
Verify your download (optional)
- Package name:
io.github.nath_goa.usugami(Usugami and Usugami OCR) or
io.github.nath_goa.usugami.lite(Usugami Lite) - Signing certificate SHA-256:
6F:4F:23:AD:E0:3E:63:6A:7C:C3:68:16:89:44:D0:CC:FC:81:32:EF:34:C5:0B:C5:A4:6B:0C:A4:CB:BD:F4:ED
On a phone with Android 9 or newer, paste the package name and the certificate into
AppVerifier. On a computer:
sha256sum -c --ignore-missing SHA256SUMS.txt
apksigner verify --print-certs Usugami.apk
gh attestation verify Usugami.apk --repo Nath-Goa/usugamiSHA256SUMS.txt:
434d4d77003cf0952eb8832653383c326eaf0ca43037ee061f995f8ba1976bf0 Usugami.apk
27724399f0db8eb433ee81dad7647b7ad7634bd34107e06549a62f621f957d95 Usugami-lite.apk
6d504d3e948f03037efda63c35483f44b28185d72fac51bfda1056be064e3a78 Usugami-ocr.apk
9cf183eecd0581c0044afbce92e888c36c6d5e227d01ee9bd0d95305f277cc46 Usugami-ocr.aab
The mapping zip file is only for developers: it holds the R8 mapping files that turn stack
traces in crash reports back into readable code. You don't need it to install Usugami.
Usugami-ocr.aab is Usugami OCR as an Android App Bundle, the file Google Play takes. Phones can't
install it: download one of the APKs above.