kyshe
2021 年9 月 29 日 16:39
2
应用平台上面写了ios但实际并不支持。推荐上并不准确,官网是这样写的:
Why is the iOS app not published yet?
According to the Apple App Store guidelines, it is prohibited to publish unstable or beta apps. Hence we wait until Xournal++ Mobile works more stable and offers more complete feature compatibility to Xournal++.
1 个赞
aeghn
(aeghn)
2021 年9 月 30 日 00:20
3
没想到被别人捷足先登了。
这个东西现在还不支持选择 pdf 文本,我之前贡献了一部分代码,大部分功能都完成了,还有几个 bug 没俢完(现在的状态真是又菜又忙,没时间回去修),本来准备都俢完后我也要投递来着,没想到晚了。。。
那我就借帖子一用,发个预览吧,应该会在十一月上线?
示意视频
相关 pr
xournalpp:master
← aeghn:20210814_pdf_selection
opened 12:05PM - 14 Aug 21 UTC
Following @Technius's suggestion, I decided to open a draft pull request.
As … the title says, this pull request is to add interaction with the PDF text, like copying text, highlighting text, etc.
This PR is going to close this issue: #1745
Preview:
https://user-images.githubusercontent.com/51843252/128634365-ddc3e7fd-255a-4ea9-933e-4a1c1257afaf.mp4
As the video shows, I added the following features
1. select text and draw text area in real time
2. pop-up menu after the selection is done, supporting respectively
- Copy text directly
- Highlighting the selection area
- Add underline to the selection area
- Adding strikethrough to the selection area
3. After selecting the area, you can select another color if you change your mind
And the last three are new elements added directly, with a direct call to strokeHandler, and each line is a separate object. Because it seems to me that these three markup tools are designed to help people using computers to mark up quickly and should be on the same level as other manual markup tools. Of course this can be discussed and replaced by a better solution.
But this does not have all the features yet.
I'm now thinking of adding the ability to select text in a region, which could be useful when we select part of the text from a table.
Final result should like be
https://user-images.githubusercontent.com/51843252/129444907-e2e2516a-7404-4caa-8ea8-4d3e6255e42f.mp4
Thanks to the help of @Technius, I could clean the previous selection, but I find there is another problem is how to determine when the re-rendering work is done. To get the demo above, I let the thread sleep for 20 ms,
the [method](https://github.com/aeghn/xournalpp/blob/8d21edce2eede3dc9314397e29731e2d567e6ab1/src/control/PDFTextSelectControl.cpp#L253) is
```c++
void PDFTextSelectControl::reselect() {
// invoke view->rerenderRect();
this->rerenderBox(this->selectTextRecs);
// invoke view->repaintPage();
this->repaintPage();
// FIXME It should happen after rerender job
std::chrono::milliseconds dur(20);
std::this_thread::sleep_for(dur);
this->paint(this->cr, this->zoom, this->zoom);
this->selectPdfText();
}
```
but I know this is not allowed, so I hope you can give some hints. Thanks in advance!
3 个赞
aeghn
(aeghn)
2021 年9 月 30 日 07:43
6
Linux 可以 ,我现在没 windows 设备, 所以无法帮忙。。。
那个也不是内置的,这些得找 GTK 问问了(
(顺便问下,现在怎么上传视频? @Qingwa
yuuka
(Yuuka)
2021 年9 月 30 日 08:44
7
你想多了,这软件根本不会内置字体
yu gothic是游哥特,是Windows内置的日文字体
关键还是无法输入中文。
这个软件能切换的字体我都切换过,无法输入。
@aeghn说在linux系统下没毛病。
我正在····呃~用虚拟机搭建一个linux系统。试试。