Package: baca
baca: TUI E-book ReaderMeetbaca,epy's lovely sister who lets you indulge
in your favorite e-books in the comfort of your terminal.
But with a sleek and contemporary appearance that's sure to captivate you!FeaturesFormats supported: Epub, Epub3, Mobi & AzwRemembers last reading positionShow images as ANSI image & you can click it for more detailScroll animationsClean & modern looksText justificationDark & light color schemeRegex searchHyperlinksRequirementspython>=3.10InstallationVia pip:pip install bacaVia git:pip install git+https://github.com/wustho/bacaVia AUR:yay -S baca-ereader-gitUsage# to read an ebookbacapath/to/your/ebook.epub# to read your last read ebook, just run baca without any argumentbaca# to see your reading history use -r as an argumentbaca-r# say you want to read an ebook from your reading history,# but you forgot the path to your ebook# just type any words you remember about your ebook# and baca will try to match it to path or title+authorbacadocebook.epub
bacaalicewonderlewiscarrollOpening an ImageTo open an image, when you encounter an ANSI image (whenShowImageAsANSI=yes) or some thing like this
(ifShowImageAsANSI=no):┌──────────────────────────────────────────────────────────────────────────────┐
│                                    IMAGE                                     │
└──────────────────────────────────────────────────────────────────────────────┘just click on it using mouse and it will open the image using system app.
Yeah, I know you want to use keyboard for this, me too, but bear with this for now."Why show the images as ANSI images instead of render it directly on terminal like ranger does?"The main reason is that currently, rendering images directly on the terminal
doesn't allow for partial scrolling of the image.
This means that we can't display only a portion (e.g., 30%) of the image when scrolling,
resulting in a broken and non-seamless scrolling experience.My primary intention in developing this app is for reading fiction e-books rather than technical ones,
and most fiction e-books don't contain many images.Displaying images on the terminal requires different implementations for various terminal emulators,
which requires a lot of maintenance.ConfigurationsConfiguration file available at~/.config/baca/config.inifor linux users. Here is the default:[General]# pick your favorite image viewerPreferredImageViewer=auto# int or css value string like 90%%# (escape percent with double percent %%)MaxTextWidth=80# 'justify', 'center', 'left', 'right'TextJustification=justify# currently using pretty=yes is slow# and taking huge amount of memoryPretty=noPageScrollDuration=0.2# either show image as ansii image# or text 'IMAGE' as a placehoder# (showing ansii image will affect# performance & resource usage)ShowImageAsANSII=yes[Color Dark]Background=#1e1e1eForeground=#f5f5f5Accent=#0178d4[Color Light]Background=#f5f5f5Foreground=#1e1e1eAccent=#0178d4[Keymaps]ToggleLightDark=cScrollDown=down,jScrollUp=up,kPageDown=ctrl+f,pagedown,l,spacePageUp=ctrl+b,pageup,hHome=home,gEnd=end,GOpenToc=tabOpenMetadata=MOpenHelp=f1SearchForward=slashSearchBackward=question_markNextMatch=nPreviousMatch=NConfirm=enterCloseOrQuit=q,escapeScreenshot=f12Known LimitationsWhen searching for specific phrases inbaca,
keep in mind that it may not be able to find them if they span across two lines,
much like in the search behavior of editor vi(m).For example,bacawon't be able to find the phrase"for it"because it is split into two lines
in this example....
she had forgotten the little golden key, and when she went back to the table for
it, she found she could not possibly reach it: she could see  it  quite  plainly
...Additionally,bacamay struggle to locate certain phrases due to adjustments made for text justification.
See the example above,"see_it"may become"see__it"due to adjusted spacing between words.
In this case, it may be more effective to use a regex search for"see +it"or simply search for the word"see"alone.Overall,baca's search feature is most effective for locating individual words
rather than phrases that may be split across multiple lines or impacted by text justification.Compared toepy, currentlybacahas some missing features.
But these are planned to be implemented tobacain the near future:TODOBookmarksTODOFictionBook supportTODOURL reading supportCreditsThanks to awesomeTextual ProjectKindle UnpackAnd many others!LicenseGPL-3