summaryrefslogtreecommitdiff
path: root/android
AgeCommit message (Collapse)Author
2013-03-27Android: fix git rebase slipPaul Gardiner
2013-03-26Make pdf_functions public as fz_functions.Robin Watts
Implementations remain unexposed, but this means we can safely pass functions in shades without having to 'sample' them (though we may still choose to do this for speed).
2013-03-26Reflow: Move from html output using tables to html output using div/spanRobin Watts
The div/spans still use table style rendering, but it's simpler code (and html) this way.
2013-03-26Rework text extraction structures.Robin Watts
Rework the text extraction structures - the broad strokes are similar but we now hold more information at each stage to enable us to perform more detailed analysis on the structure of the page. We now hold: fz_text_char's (the position, ucs value, and style of each char). fz_text_span's (sets of chars that share the same baseline/transform, with no more than an expected amount of whitespace between each char). fz_text_line's (sets of spans that share the same baseline (more or less, allowing for super/subscript, but possibly with a larger than expected amount of whitespace). fz_text_block's (sets of lines that follow one another) After fz_text_analysis is called, we hope to have fz_text_blocks split such that each block is a paragraph. This new implementation has the same restrictions as the current implementation it replaces, namely that chars are only considered for addition onto the most recent span at the moment, but this revised form is designed to allow more easy extension, and for this restriction to be lifted. Also add simple paragraph splitting based on finding the most common 'line distance' in blocks. When we add spans together to collate them into lines, we record the 'horizontal' and 'vertical' spacing between them. (Not actually horizontal or vertical, so much as 'in the direction of writing' and 'perpendicular to the direction of writing'). The 'horizontal' value enables us to more correctly output spaces when converting to (say) html later. The 'vertical' value enables us to spot subscripts and superscripts etc, as well as small changes in the baseline due to style changes. We are careful to base the baseline comparison on the baseline for the line, not the baseline for the previous span, as otherwise superscripts/ subscripts on the end of the line affect what we match next. Also, we are less tolerant of vertical shifts after a large gap. This avoids false positives where different columns just happen to almost line up.
2013-03-26Android: Ensure that autorotate doesn't kick us out of reflow mode.Robin Watts
2013-03-26Android: Popup notifications for entering/exiting reflow mode.Robin Watts
2013-03-25Android: remove unintentional reliance on API 9Paul Gardiner
The AsyncTask class we took from android source makes use of ArrayDeque which in turn makes use of Deque, neither of which are available below API 9. Fix is to take these two classes from android source also
2013-03-25Android: add support for Ink annotation creationPaul Gardiner
2013-03-24Android: warn when no text selected and avoid creating empty annotationsPaul Gardiner
2013-03-24Add another input mode for drawing ink annotationsPaul Gardiner
2013-03-21Bug 693719: Android: Catch exceptions when counting pages.Robin Watts
Return 0. Check for this case when opening a PDF and give a nice dialogue. Fix the nice dialogue code so that it doesn't crash afterwards due to a null mSearchTask.
2013-03-18Auto-generate appearance streams for strikeout, underline, highlightPaul Gardiner
This fixes bug #693664, and also simplifies app code. The example file attached to the bug produces strange results, but that is because the QuadPoint information is incorrect.
2013-03-04Avoid interactive features causing bloat in mutoolPaul Gardiner
2013-02-28Pass bbox to pdf_set_annot_appearance rather than base on display listPaul Gardiner
Use of the bbox device to derive the area of the display list can lead to bad results because of heuristics used to handle corners of stroked paths.
2013-02-28Fix bug: failure to set the SubType field of created annotations.Paul Gardiner
Also, in the app, protect against exceptions thrown due to unknown annotation types.
2013-02-27Android: Update *.mk files to allow for non-arm android builds.Robin Watts
We could do with non arm builds of v8 to go with these.
2013-02-26Android: add support for highlight and underline markup annotations.Paul Gardiner
Highlight annotations currently come out opaque so aren't a lot of use.
2013-02-26Include required quadPoints entry in created markup annotations.Paul Gardiner
Also change the way we pass the text rectangles so that non-axis-aligned ones can be permitted, and relocate the code that calculates the strike-out lines from the bounding boxes
2013-02-26Android: implement annotation deletionPaul Gardiner
2013-02-22Android: add annotation-editing menu, triggered on annotation selectionPaul Gardiner
2013-02-22Android: support selection of annotationPaul Gardiner
2013-02-22Android: move selected text operations from PageView to MuPDFPageViewPaul Gardiner
2013-02-22Android: avoid unnecessary repeated set up of child viewsPaul Gardiner
This change showed up a bug where highlights may fail to show if passed in while the page was set as blank. That bug is also fixed in this commit
2013-02-22Android: add MuPDFCore.getAnnotationsPaul Gardiner
2013-02-13Android: highlight reflow icon when in reflow modePaul Gardiner
2013-02-13Redraw reflow icons in Xara to get better antialiasing.Robin Watts
2013-02-13Bump version number strings and dates for 1.2 release.Tor Andersson
2013-02-11Android: factor out ReaderView's special handling of MuPDFView objectsPaul Gardiner
2013-02-11Android: factor out search from main activityPaul Gardiner
2013-02-06Fix Android build after reference/irect changes.Robin Watts
2013-02-06Rename bbox to irect.Tor Andersson
2013-02-05Android: reflow - request layout each time we learn a new page heightPaul Gardiner
2013-02-05Android: Avoid SEGV on reflow on HTC Desire HDRobin Watts
Move the one time setup of the HTMLOUT javascript interface etc into the constructor. This seems to avoid the occasional SEGV caused while flipping pages on the HTC Desire in reflow mode.
2013-02-05Android: use identity matrix in html extraction to improve font sizesPaul Gardiner
2013-02-05Android: avoid view churn in reflow modePaul Gardiner
2013-02-05Android: reflow - get zoom working againPaul Gardiner
2013-02-05Android: avoid byte[] -> String -> byte[]Paul Gardiner
2013-02-05Android: Use HTML output in reflow mode.Robin Watts
This gets us styles.
2013-02-04Add fz_output, and make output functions use it.Robin Watts
Various functions in the code output to FILE *, when there are times we'd like them to output to other things, such as fz_buffers. Add an fz_output type, together with fz_printf to allow things to output to this.
2013-02-04Android: reset zoom on mode changePaul Gardiner
We should probably record the last scale for each mode and reenstate it when returning to that mode, but there are a few difficulties to that that need to be addressed
2013-02-04Android: alter zoom range for reflow modePaul Gardiner
2013-02-04Android: zooming in reflow mode altering CSS fontSize via javascriptPaul Gardiner
2013-02-04Android: add hooks for zooming in reflow modePaul Gardiner
2013-02-04Android: add button for reflowPaul Gardiner
2013-02-04Android: handle Unicode correctly in reflowPaul Gardiner
2013-02-03Android: first attempt at reflow modePaul Gardiner
2013-02-02Android: introduce common interface for normal and reflowed viewsPaul Gardiner
2013-02-01Android: quick and dirty conversion of text to htmlPaul Gardiner
2013-01-31Android: fix buildPaul Gardiner
2013-01-31Android: use a single fz_page to render both main and hq bitmapsPaul Gardiner