Lihang Xu

Results 194 comments of Lihang Xu

目前BasicCAT已经使用了富文本编辑器,添加高亮其实不是很难,跟踪修订则比较复杂,我有时间看下怎么添加这些功能。

你说的是inline markups,我一般翻译为行内标记,就是一句话里的加粗和斜体等样式。这个目前是不支持所见即所得的编辑的,只能通过处理标签来做到设置行内样式。目前高亮显示的只有空格和标签。 所见即所得是比较复杂的,不是很容易实现。另外不同文件格式,采用的样式标记也不一样,主流CAT软件也只是支持Office、InDesign这些常见格式的所见即所得编辑

Proz上有一篇帖子是讲不同软件处理行内文本格式的效果的:https://www.proz.com/forum/cat_tools_technical_help/338258-first_look_at_the_user_interfaces_of_several_cat_tools.html

这个问题我在Windows系统下还没碰到过,文件的完整路径是什么样的?我只在mac下碰到文件名包含空格时出现不能处理的问题。如果要处理这类文件的话可以用okapi rainbow先进行提取

I use [react-native-barcode-mask](https://github.com/shahnawaz/react-native-barcode-mask) to draw the rectangle and then crop the image in the frame processor plugin. Code about cropping the image: Android: https://github.com/xulihang/vision-camera-dynamsoft-label-recognizer/blob/2d37e9350c8a8f0d99413efebea88c0d15c3e08a/android/src/main/java/com/visioncameradynamsoftlabelrecognizer/VisionCameraDLRPlugin.java#L61-L82 iOS: https://github.com/xulihang/vision-camera-dynamsoft-label-recognizer/blob/2d37e9350c8a8f0d99413efebea88c0d15c3e08a/ios/VisionCameraDLRPlugin.swift#L69-L95

If we need to define the region in pixels, I will use react-native-svg with its `viewBox` set and then use pixels to draw the scan region.

The FrameProcessor is also running after the component is unmounted. Maybe related as well? My project: https://github.com/xulihang/vision-camera-dynamsoft-label-recognizer/tree/main/example

In my case, the camera still works in the specified resolution.

In the docs, it says that the resolution Size should be expressed in the coordinate frame after rotating the supported sizes by the target rotation: https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysis.Builder#setTargetResolution(android.util.Size)